mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 11:09:54 +00:00
build_win.bat: Parse out smv of janet/version.
This commit is contained in:
parent
3492ed6d88
commit
933f4b9111
@ -157,7 +157,7 @@ copy auxbin\jpm dist\jpm
|
||||
copy tools\jpm.bat dist\jpm.bat
|
||||
|
||||
@rem Create installer
|
||||
janet.exe -e "(print janet/version)" > build\version.txt
|
||||
janet.exe -e "(print ((peg/match '(* :d+ `.` :d+ `.` :d+) janet/version) 0))" > 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
|
||||
|
Loading…
Reference in New Issue
Block a user