-
Notifications
You must be signed in to change notification settings - Fork 15
/
BuildWin64.bat
54 lines (41 loc) · 1.49 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
)
call UpdateBuildDirConfigFiles.bat
del build\win\Adventure\test_*.txt
del build\win\Adventure\TEST_*.txt
del build\win\AIGuide\TEST_*.txt
del build\win\AIGuide\test_*.txt
del build\win\config.txt
del build\win\ComfyUI\test_*.json
del build\win\ComfyUI\TEST_*.json
del build\win\ComfyUI\workflow\test_*.json
del build\win\ComfyUI\workflow\TEST_*.json
call %RT_PROJECTS%\Signing\sign.bat "build/win/%APP_NAME%.exe" "Seth's AI Tools"
call %RT_PROJECTS%\Signing\sign.bat "build/win/utils/RTClip.exe" "RTClip"
del build\win\utils\RTClip.zip
:create the archive
set ZIP_FNAME=SethsAIToolsWindows.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\ aitools_client\
if "%NO_PAUSE%"=="" pause