mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-04 19:58:43 +00:00
Fix build when PATH contains spaces
This commit is contained in:
10
build.bat
10
build.bat
@@ -16,13 +16,13 @@ echo Building nvm.exe
|
||||
go build src\nvm.go
|
||||
|
||||
REM Group the file with the helper binaries
|
||||
move nvm.exe %GOBIN%
|
||||
move nvm.exe "%GOBIN%"
|
||||
|
||||
REM Codesign the executable
|
||||
.\buildtools\signtools\x64\signtool.exe sign /debug /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a %GOBIN%\nvm.exe
|
||||
.\buildtools\signtools\x64\signtool.exe sign /debug /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a "%GOBIN%\nvm.exe"
|
||||
|
||||
|
||||
for /f %%i in ('%GOBIN%\nvm.exe version') do set AppVersion=%%i
|
||||
for /f %%i in ('"%GOBIN%\nvm.exe" version') do set AppVersion=%%i
|
||||
echo nvm.exe v%AppVersion% built.
|
||||
|
||||
REM Create the distribution folder
|
||||
@@ -38,10 +38,10 @@ REM Create the distribution directory
|
||||
mkdir "%DIST%"
|
||||
|
||||
REM Create the "no install" zip version
|
||||
for %%a in (%GOBIN%) do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" "%%a\*" -x "%GOBIN%\nodejs.ico")
|
||||
for %%a in ("%GOBIN%") do (buildtools\zip -j -9 -r "%DIST%\nvm-noinstall.zip" "%CD%\LICENSE" %%a\* -x "%GOBIN%\nodejs.ico")
|
||||
|
||||
REM Generate the installer (InnoSetup)
|
||||
buildtools\iscc %INNOSETUP% /o%DIST%
|
||||
buildtools\iscc "%INNOSETUP%" "/o%DIST%"
|
||||
buildtools\zip -j -9 -r "%DIST%\nvm-setup.zip" "%DIST%\nvm-setup.exe"
|
||||
|
||||
REM Generate checksums
|
||||
|
Reference in New Issue
Block a user