@@ -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 |