mirror of
https://github.com/janet-lang/janet
synced 2025-01-12 08:30:26 +00:00
Echo calculated version.
This commit is contained in:
parent
bd20b16a32
commit
0ecd74d01d
@ -157,10 +157,11 @@ copy auxbin\jpm dist\jpm
|
|||||||
copy tools\jpm.bat dist\jpm.bat
|
copy tools\jpm.bat dist\jpm.bat
|
||||||
|
|
||||||
@rem Create installer
|
@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
|
janet.exe -e "(print (= (os/arch) :x64))" > build\64bit.txt
|
||||||
set /p JANET_VERSION= < build\version.txt
|
set /p JANET_VERSION= < build\version.txt
|
||||||
set /p SIXTYFOUR= < build\64bit.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%
|
"C:\Program Files (x86)\NSIS\makensis.exe" janet-installer.nsi /DVERSION=%JANET_VERSION% /DSIXTYFOUR=%SIXTYFOUR%
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user