release/template/README.md: Document easiest way to use windows
This commit is contained in:
parent
1fde26789a
commit
c2bcb3a93e
1 changed files with 10 additions and 6 deletions
|
|
@ -19,14 +19,18 @@ ensure_os
|
|||
if [ "$OS" = windows ]; then
|
||||
cat <<EOF
|
||||
|
||||
We currently do not have a .msi for proper installation on Windows so this release is
|
||||
structured the same as our Unix releases. You can still install on Windows still though
|
||||
with [MSYS2](https://www.msys2.org/) which emulates a Linux shell for Windows. It also
|
||||
enables d2 to show colors in its output.
|
||||
We currently do not have a .msi for automatic installation on Windows so this release is
|
||||
structured the same as our Unix releases.
|
||||
|
||||
Easiest way to use d2 on Windows is to just cd into the bin directory of this release
|
||||
and invoke d2 like ./d2.exe <full-input-file-path>
|
||||
|
||||
You can install on Windows with [MSYS2](https://www.msys2.org/) which emulates a Linux
|
||||
shell for Windows. It also enables d2 to show colors in its output.
|
||||
|
||||
But if you must install on Windows without MSYS2, for now you'll have to add the d2 binary
|
||||
in \`./bin/d2.exe\` to your \`\$PATH\` manually. You can also add the \`./bin\` directory
|
||||
to your \`\$PATH\`.
|
||||
in \`./bin/d2.exe\` to your \`\$PATH\` manually. Or you can add the \`./bin\` directory to
|
||||
your \`\$PATH\`.
|
||||
|
||||
See https://www.wikihow.com/Change-the-PATH-Environment-Variable-on-Windows
|
||||
See https://github.com/terrastruct/d2/blob/master/docs/INSTALL.md#windows
|
||||
|
|
|
|||
Loading…
Reference in a new issue