diff --git a/build-release.sh b/build-release.sh index da7ae66..ed11d1a 100755 --- a/build-release.sh +++ b/build-release.sh @@ -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" diff --git a/src/operations/procs.nim b/src/operations/procs.nim index 80a0354..eb0f0c9 100644 --- a/src/operations/procs.nim +++ b/src/operations/procs.nim @@ -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: "" ) )