forked from Poyo-SSB/osu-playground
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.bat
19 lines (13 loc) · 1 KB
/
build.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off
set /p version="Version tag (v1.x.x): "
echo Building...
"C:\Program Files\Unity\Editor\Unity" -batchmode -quit -projectPath %cd% -executeMethod ApplicationBuilder.Build -version %version% -buildfolder %cd%\Builds > nul
echo Copying scripts...
robocopy /s /mir %cd%\Scripts\ %cd%\Builds\%version%\osuPlayground-%version%-win32\Scripts\ > nul
robocopy /s /mir %cd%\Scripts\ %cd%\Builds\%version%\osuPlayground-%version%-win64\Scripts\ > nul
robocopy /s /mir %cd%\Scripts\ %cd%\Builds\%version%\osuPlayground-%version%-mac\Scripts\ > nul
echo Zipping...
"C:\Program Files\7-Zip\7z.exe" a %cd%\Builds\%version%\osuPlayground-%version%-win32.zip %cd%\Builds\%version%\osuPlayground-%version%-win32\* > nul
"C:\Program Files\7-Zip\7z.exe" a %cd%\Builds\%version%\osuPlayground-%version%-win64.zip %cd%\Builds\%version%\osuPlayground-%version%-win64\* > nul
"C:\Program Files\7-Zip\7z.exe" a %cd%\Builds\%version%\osuPlayground-%version%-mac.zip %cd%\Builds\%version%\osuPlayground-%version%-mac\* > nul
echo Done!