Skip to content

Commit

Permalink
added windows build options to script
Browse files Browse the repository at this point in the history
  • Loading branch information
nirokay committed Jan 13, 2025
1 parent 8b8eb3d commit 1619536
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ fi

ARCH="_$ARCH"
nimble build -d:release && mv gitman "gitman_${OSTYPE}${ARCH}"

nimble build -d:mingw -d:windows -d:release && mv gitman.exe "gitman_windows_${ARCH}.exe"
3 changes: 2 additions & 1 deletion src/operations/procs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -245,9 +245,10 @@ proc editInstallCommand*(_) =

if editor == "":
EDITOR_NOT_EXISTS.handle("Please type a correct executable name or set your 'EDITOR' environment variable!" &
(when not defined(windows):
(when not(defined windows) or not(defined mingw):
"\nYou can do this by adding 'export EDITOR=editor_name' in your profile file (default: ~/.profile)!\n" &
"For example: 'export EDITOR=vim', 'export EDITOR=nano'"
else: ""
)
)

Expand Down

0 comments on commit 1619536

Please sign in to comment.