forked from MCF3389/GPTAvatarWebGL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildWin64.bat
40 lines (32 loc) · 1.12 KB
/
BuildWin64.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
call app_info_setup.bat
SET FILENAME=%APP_NAME%
:Actually do the unity build
rmdir build\win /S /Q
mkdir build\win
call GenerateBuildDate.bat
echo Building project...
:So let's delete these things from the shared stuff that we don't need in this kind of build? (remove the : in front to delete)
:del /Q Assets\RT\MySQL\RTSqlManager.cs
:del /Q Assets\RT\RTNetworkServer.cs
:%UNITY_EXE% -quit -batchmode -logFile log.txt -buildWindows64Player build/win/%APP_NAME%.exe -projectPath %cd%
%UNITY_EXE% -quit -batchmode -logFile log.txt -executeMethod Win64Builder.BuildRelease -projectPath %cd%
echo Finished building.
if not exist build/win/%APP_NAME%.exe (
echo Error with build!
start notepad.exe log.txt
%RT_UTIL%\beeper.exe /p
pause
)
:Add a few more files we need
copy config_template.txt build\win
copy Misc\readme.txt build\win
call %RT_PROJECTS%\Signing\sign.bat "build/win/%APP_NAME%.exe" "GPTAvatar"
:create the archive
set ZIP_FNAME=GPTAvatar_Windows.zip
del %ZIP_FNAME%
cd build
%RT_UTIL%\7za.exe a -r -tzip ..\%ZIP_FNAME% win
cd ..
:Rename the root folder
%RT_UTIL%\7z.exe rn %ZIP_FNAME% win\ GPTAvatar\
if "%NO_PAUSE%"=="" pause