More bat magic.

This commit is contained in:
scepheo 2015-02-02 23:44:48 +00:00
parent e289065bd1
commit 24f0765233
2 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,9 @@
if "%1"=="" (
SET NAME=BizHawk.zip
) else (
SET NAME=%1
)
svn --version > NUL svn --version > NUL
@if errorlevel 1 goto MISSINGSVN @if errorlevel 1 goto MISSINGSVN
@ -12,7 +18,7 @@ IF NOT EXIST %MSBUILDDIR%msbuild.exe goto MISSINGMSBUILD
call "%MSBUILDDIR%msbuild.exe" ..\BizHawk.sln /p:Configuration=Release /p:Platform="x86" /t:rebuild call "%MSBUILDDIR%msbuild.exe" ..\BizHawk.sln /p:Configuration=Release /p:Platform="x86" /t:rebuild
rmdir /s /q temp rmdir /s /q temp
del /s BizHawk.zip del /s %NAME%
cd ..\output cd ..\output
rem slimdx has a way of not making it into the output directory, so this is a good time to make sure rem slimdx has a way of not making it into the output directory, so this is a good time to make sure
@ -24,11 +30,11 @@ rem explicitly list the OK ones here as individual copies. until then....
copy *.dll dll copy *.dll dll
..\dist\zip.exe -X -r ..\Dist\BizHawk.zip EmuHawk.exe DiscoHawk.exe defctrl.json dll shaders gamedb NES\Palettes Lua Gameboy\Palettes -x *.pdb -x *.lib -x *.pgd -x *.exp -x dll\libsneshawk-64*.exe -x *.ilk ..\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 *.exp -x dll\libsneshawk-64*.exe -x *.ilk
cd ..\Dist cd ..\Dist
.\unzip.exe BizHawk.zip -d temp .\unzip.exe %NAME% -d temp
del BizHawk.zip del %NAME%
rmdir /s /q temp\lua rmdir /s /q temp\lua
svn export ..\output\lua temp\Lua svn export ..\output\lua temp\Lua
@ -38,7 +44,7 @@ cd temp
upx -d dll\*.dll upx -d dll\*.dll
upx -d dll\*.exe upx -d dll\*.exe
upx -d *.exe upx -d *.exe
..\zip.exe -X -9 -r ..\BizHawk.zip . -i \* ..\zip.exe -X -9 -r ..\%NAME% . -i \*
cd .. cd ..
rmdir /s /q temp rmdir /s /q temp
@ -49,4 +55,5 @@ goto END
goto END goto END
:MISSINGSVN :MISSINGSVN
@echo missing svn.exe. can't make distro without that. @echo missing svn.exe. can't make distro without that.
:END :END
exit

View File

@ -1,3 +1,3 @@
start fart "..\Version\VersionInfo.cs" "DeveloperBuild = false" "DeveloperBuild = true" start fart "..\Version\VersionInfo.cs" "DeveloperBuild = false" "DeveloperBuild = true"
start BuildAndPackage.bat start BuildAndPackage BizHawk-Developer.zip
exit exit