-
Notifications
You must be signed in to change notification settings - Fork 3
/
MakeReleaseZip.bat
36 lines (28 loc) · 1.12 KB
/
MakeReleaseZip.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
call app_info_setup.bat
echo %CUR_PATH%
call vcvarsall.bat x64
msbuild.exe Subfish.sln /t:Clean,Build /p:Configuration=Release /p:Platform="Any CPU" /m
rmdir tempbuild /S /Q
mkdir tempbuild
xcopy bin\*.dll tempbuild
xcopy bin\*.deps.json tempbuild
xcopy bin\*.runtimeconfig.json tempbuild
mkdir tempbuild\tools
xcopy bin\tools\*.* tempbuild\tools
mkdir tempbuild\download
mkdir tempbuild\runtimes
xcopy bin\runtimes tempbuild\runtimes /E /F /Y
xcopy bin\ScriptsForDaVinciResolve\ tempbuild\ScriptsForDaVinciResolve\ /E /F /Y
copy bin\%APP_NAME%.exe tempbuild
copy bin\%APP_NAME%.dll tempbuild
copy readme.txt tempbuild
copy "bin\download\subtitles and videos get downloaded here.txt" tempbuild\download
call %RT_PROJECTS%\Signing\sign.bat tempbuild\%APP_NAME%.exe "%APP_NAME%"
call %RT_PROJECTS%\Signing\sign.bat tempbuild\%APP_NAME%.dll "%APP_NAME%"
:create the archive
set FNAME=%APP_NAME%Windows.zip
del %FNAME%
%RT_PROJECTS%\proton\shared\win\utils\7za.exe a -r -tzip %FNAME% tempbuild
:Rename the root folder
%RT_PROJECTS%\proton\shared\win\utils\7z.exe rn %FNAME% tempbuild\ %APP_NAME%\
pause