diff options
| author | 2019-12-19 13:45:38 -0500 | |
|---|---|---|
| committer | 2019-12-19 13:45:38 -0500 | |
| commit | 0ecd74d01d405ba663f51716280099b78fdbfbe2 (patch) | |
| tree | fdcffde3b53a89f57a5eb706d53dfeb01b6f9b07 /build_win.bat | |
| parent | Capture typo. (diff) | |
Echo calculated version.
Diffstat (limited to 'build_win.bat')
| -rw-r--r-- | build_win.bat | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build_win.bat b/build_win.bat index 768e9105..e1012abc 100644 --- a/build_win.bat +++ b/build_win.bat @@ -157,10 +157,11 @@ copy auxbin\jpm dist\jpm copy tools\jpm.bat dist\jpm.bat @rem Create installer -janet.exe -e "(print ((peg/match ''(* :d+ `.` :d+ `.` :d+) janet/version) 0))" > build\version.txt +janet.exe -e "(->> janet/version (peg/match ''(* :d+ `.` :d+ `.` :d+)) first print)" > build\version.txt janet.exe -e "(print (= (os/arch) :x64))" > build\64bit.txt set /p JANET_VERSION= < build\version.txt set /p SIXTYFOUR= < build\64bit.txt +echo "JANET_VERSION is %JANET_VERSION%" "C:\Program Files (x86)\NSIS\makensis.exe" janet-installer.nsi /DVERSION=%JANET_VERSION% /DSIXTYFOUR=%SIXTYFOUR% exit /b 0 |
