Files
VRCX/build.cmd
Yuki 9316cee168 One-click build (#188)
* Add cd .. to build-njs.cmd

Minor Improvement, Working Dir should be returned to path that cmd located after build.

* One-click build

Add build.cmd to combine 3-steps build. Require VS x64 Native Shell to run cmd file.

* Update build-7z.cmd
2021-04-20 13:57:06 +09:00

21 lines
649 B
Batchfile

@echo off
cd /d %~dp0
msbuild -t:restore -p:RestorePackagesConfig=true
msbuild VRCX.sln /p:Configuration=Release /p:Platform=x64 -m
cd html
call npm ci
call npm run production
cd ..
mklink /J "%~dp0\bin\x64\Release\html" "%~dp0\html\dist"
setlocal
set TODAY=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
set ZIP_NAME=VRCX_%TODAY%.zip
echo %ZIP_NAME%
rem using bandizip (https://www.bandisoft.com/bandizip)
cd "%~dp0\bin\x64\Release"
bz c -l:9 -r -storeroot:yes -ex:"cache;userdata;*.log;VRCX.json;VRCX.sqlite3" -cmt:"https://github.com/pypy-vrc/VRCX" %ZIP_NAME% *
cd "%~dp0"
move "%~dp0\bin\x64\Release\%ZIP_NAME%" "%~dp0"
rd "%~dp0\bin\x64\Release\html"
pause