Commit 19c3b8d

Nick committed on
Update build script for windows
commit 19c3b8d35a767fda9dcc862730cddddc3e91ff02 parent 4ce3349
3 changed files +19−6
Modified.gitignore +3−1
@@ -13,4 +13,6 @@ lib
13 *trace*.txt 13 *trace*.txt
14 *.so 14 *.so
15 ~* 15 ~*
16 Release 16 Release-windows
17 Release-mac
18 Release-linux
Addedbuild-release-unix.sh +7−0
@@ -0,0 +1,7 @@
1 asm=$(which rgbasm)
2 link=$(which rgblink)
3 fix=$(which rgbfix)
4
5 outdir="$1"
6
7 echo $1
Modifiedbuild-release-win.bat +9−5
@@ -3,8 +3,9 @@ rem @echo off
3 for /f %%i in ('where rgbasm') do set rgbasm=%%i 3 for /f %%i in ('where rgbasm') do set rgbasm=%%i
4 for /f %%i in ('where rgblink') do set rgblink=%%i 4 for /f %%i in ('where rgblink') do set rgblink=%%i
5 for /f %%i in ('where rgbfix') do set rgbfix=%%i 5 for /f %%i in ('where rgbfix') do set rgbfix=%%i
6 for /f %%i in ('where ffmpeg') do set ffmpeg=%%i
6 7
7 set outdir=Release 8 set outdir=%1
8 9
9 :: Build halt.gb 10 :: Build halt.gb
10 %rgbasm% -o halt.obj halt.asm 11 %rgbasm% -o halt.obj halt.asm
@@ -20,8 +21,9 @@ if not errorlevel 0 goto fixfail
20 :: Copy needed stuff 21 :: Copy needed stuff
21 22
22 copy %rgbasm% %outdir%\ 23 copy %rgbasm% %outdir%\
23 copy %rgbalink% %outdir%\ 24 copy %rgblink% %outdir%\
24 copy %rgbfix% %outdir%\ 25 copy %rgbfix% %outdir%\
26 copy %ffmpeg% %outdir%\
25 27
26 copy Resources\Fonts\PixeliteTTF.ttf %outdir%\ 28 copy Resources\Fonts\PixeliteTTF.ttf %outdir%\
27 if not errorlevel 0 goto copyfail 29 if not errorlevel 0 goto copyfail
@@ -29,15 +31,17 @@ if not errorlevel 0 goto copyfail
29 copy Resources\Libs\SDL2.dll %outdir%\ 31 copy Resources\Libs\SDL2.dll %outdir%\
30 if not errorlevel 0 goto copyfail 32 if not errorlevel 0 goto copyfail
31 33
32 Xcopy /E /I /Y hUGEDriver %outdir%\hUGEDriver 34 mkdir %outdir%\hUGEDriver
33 if not errorlevel 0 goto copyfail 35 pushd %outdir%\hUGEDriver
36 curl -L https://api.github.com/repos/SuperDisk/hUGEDriver/tarball | tar xf - --strip 1
37 popd
34 38
35 Xcopy /E /I /Y "Resources\Sample Songs" "%outdir%\Sample Songs" 39 Xcopy /E /I /Y "Resources\Sample Songs" "%outdir%\Sample Songs"
36 if not errorlevel 0 goto copyfail 40 if not errorlevel 0 goto copyfail
37 41
38 :: Zip it up 42 :: Zip it up
39 43
40 powershell Compress-Archive Release\* hUGETracker-RELEASE.zip -Force 44 powershell Compress-Archive %outdir%\* hUGETracker-%outdir%.zip -Force
41 45
42 echo Done 46 echo Done
43 exit/b 0 47 exit/b 0