feat(exe): add file with API version and commit to bundle
This commit is contained in:
parent
fcaeb8cb42
commit
94688ab3c7
|
@ -28,5 +28,8 @@ git rev-parse HEAD > commit.txt
|
||||||
set /p GIT_SHA=<commit.txt
|
set /p GIT_SHA=<commit.txt
|
||||||
set GIT_HEAD=%GIT_SHA:~0,8%
|
set GIT_HEAD=%GIT_SHA:~0,8%
|
||||||
|
|
||||||
|
REM create version file
|
||||||
|
echo "%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%" > .\dist\version.txt
|
||||||
|
|
||||||
REM create archive
|
REM create archive
|
||||||
"C:\Program Files\7-Zip\7z.exe" a .\dist\onnx-web-v%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%.zip ".\dist\*"
|
"C:\Program Files\7-Zip\7z.exe" a .\dist\onnx-web-v%BUNDLE_VERSION%-%BUNDLE_TYPE%-%GIT_HEAD%.zip ".\dist\*"
|
||||||
|
|
Loading…
Reference in New Issue