Fix build scripts (#891)

This commit is contained in:
Usman Shafiq
2024-09-01 04:38:54 -04:00
committed by GitHub
parent 734b2e3952
commit 8c4e4af075
3 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
@echo off
cd ..
dotnet build VRCX.sln -p:Configuration=Release -p:Platform=x64 -p:RestorePackagesConfig=true -t:"Restore;Clean;Build" -m --self-contained
mklink /J "%~dp0\bin\x64\Release\html" "%~dp0\html\dist"
mklink /J "%~dp0\..\bin\x64\Release\html" "%~dp0\..\html\dist"
pause

View File

@@ -11,8 +11,8 @@ for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%
set ZIP_NAME=VRCX_%TODAY%.zip
echo %ZIP_NAME%
rem using 7-Zip (https://www.7-zip.org)
cd "%~dp0\bin\x64\Release"
cd "%~dp0\..\bin\x64\Release"
%ZIP_BIN% a -tzip %ZIP_NAME% * -mx=7 -xr0!*.log -xr0!*.pdb
cd "%~dp0"
move "%~dp0\bin\x64\Release\%ZIP_NAME%" "%~dp0"
move "%~dp0\..\bin\x64\Release\%ZIP_NAME%" "%~dp0"
pause

View File

@@ -5,8 +5,8 @@ for /f %%a in ('powershell -Command "Get-Date -format yyyyMMdd"') do set TODAY=%
set ZIP_NAME=VRCX_%TODAY%.zip
echo %ZIP_NAME%
rem using bandizip (https://www.bandisoft.com/bandizip)
cd "%~dp0\bin\x64\Release"
cd "%~dp0\..\bin\x64\Release"
bz c -l:9 -r -storeroot:yes -ex:"*.log;*.pdb" -cmt:"https://github.com/vrcx-team/VRCX" %ZIP_NAME% *
cd "%~dp0"
move "%~dp0\bin\x64\Release\%ZIP_NAME%" "%~dp0"
move "%~dp0\..\bin\x64\Release\%ZIP_NAME%" "%~dp0"
pause