do some tidying of build script, add an ExternalTool example to it

This commit is contained in:
zeromus 2015-12-10 06:57:02 -06:00
parent a9b094c11b
commit 282795aa81
2 changed files with 11 additions and 3 deletions

View File

@ -32,16 +32,18 @@ rem explicitly list the OK ones here as individual copies. until then....
copy *.dll dll copy *.dll dll
..\dist\zip.exe -X -r ..\Dist\%NAME% EmuHawk.exe DiscoHawk.exe defctrl.json dll shaders Tools gamedb NES\Palettes Lua Gameboy\Palettes -x *.pdb -x *.lib -x *.pgd -x *.exp -x dll\libsneshawk-64*.exe -x *.ilk rem Now, we're about to zip and then unzip. Why, you ask? Because that's just the way this evolved.
..\dist\zip.exe -X -r ..\Dist\%NAME% EmuHawk.exe DiscoHawk.exe defctrl.json dll shaders gamedb NES\Palettes Lua Gameboy\Palettes -x *.pdb -x *.lib -x *.pgd -x *.ipdb -x *.iobj -x *.exp -x dll\libsneshawk-64*.exe -x *.ilk -x dll\gpgx.elf -x dll\miniclient.* -x dll\*.xml
cd ..\Dist cd ..\Dist
.\unzip.exe %NAME% -d temp .\unzip.exe %NAME% -d temp
del %NAME% del %NAME%
rem Remove things we can't allow the user's junky files to pollute the dist with. We'll export fresh copies from git
rmdir /s /q temp\lua rmdir /s /q temp\lua
rmdir /s /q temp\firmware rmdir /s /q temp\firmware
rmdir /s /q gitsucks
rmdir /s /q gitsucks
git --git-dir ../.git archive --format zip --output lua.zip master output/Lua git --git-dir ../.git archive --format zip --output lua.zip master output/Lua
git --git-dir ../.git archive --format zip --output firmware.zip master output/Firmware git --git-dir ../.git archive --format zip --output firmware.zip master output/Firmware
unzip lua.zip -d gitsucks unzip lua.zip -d gitsucks
@ -53,15 +55,21 @@ move gitsucks\output\Firmware temp
rmdir /s /q gitsucks rmdir /s /q gitsucks
cd temp cd temp
rem remove UPX from any files we have checked in, because people's lousy security software hates it rem remove UPX from any files we have checked in, because people's lousy security software hates it
upx -d dll\*.dll upx -d dll\*.dll
upx -d dll\*.exe upx -d dll\*.exe
upx -d *.exe upx -d *.exe
rem Patch up working dir with a few other things we want
mkdir ExternalTools
copy ..\HelloWorld_BizHawkTool.dll ExternalTools
rem Build the final zip
..\zip.exe -X -9 -r ..\%NAME% . -i \* ..\zip.exe -X -9 -r ..\%NAME% . -i \*
cd .. cd ..
rem DONE!
rmdir /s /q temp rmdir /s /q temp
goto END goto END

Binary file not shown.