2016-02-16 23:25:39 +00:00
|
|
|
set OUTFILE=BizHawk-Github-Master.zip
|
2016-02-16 23:15:03 +00:00
|
|
|
set WORKDIR=.build-github-master
|
2016-02-16 23:25:39 +00:00
|
|
|
|
|
|
|
set PATH=%PATH%;C:\Program Files (x86)\git\bin;C:\Program Files\git\bin
|
|
|
|
|
|
|
|
rem cleanup old working and output files
|
|
|
|
del ..\..\%OUTFILE%
|
2016-02-16 23:15:03 +00:00
|
|
|
rmdir /s /q %WORKDIR%
|
2016-02-16 23:25:39 +00:00
|
|
|
|
|
|
|
rem prepare working directory for clone
|
2016-02-16 23:15:03 +00:00
|
|
|
mkdir %WORKDIR%
|
|
|
|
|
|
|
|
rem http://stackoverflow.com/questions/13750182/git-how-to-archive-from-remote-repository-directly
|
2016-02-16 23:25:39 +00:00
|
|
|
cd %WORKDIR%
|
2016-02-16 23:19:48 +00:00
|
|
|
git clone --depth=1 --single-branch --branch Release http://github.com/TASVideos/BizHawk.git .
|
2016-02-16 23:15:03 +00:00
|
|
|
|
2016-02-16 23:25:39 +00:00
|
|
|
rem use updated build scripts
|
|
|
|
copy /y ..\BuildAndPackage_Release.bat dist
|
|
|
|
copy /y ..\BuildAndPackage.bat dist
|
|
|
|
|
|
|
|
rem build the branch
|
2016-02-16 23:15:03 +00:00
|
|
|
cd dist
|
|
|
|
call BuildAndPackage_Release.bat
|
|
|
|
|
|
|
|
rem make sure we save the output!
|
2016-02-16 23:25:39 +00:00
|
|
|
move BizHawk.zip ..\..\%OUTFILE%
|
2016-02-16 23:15:03 +00:00
|
|
|
|
2016-02-16 23:25:39 +00:00
|
|
|
rem cleanup
|
|
|
|
cd ..\..
|
2016-02-16 23:15:03 +00:00
|
|
|
rmdir /s /q %WORKDIR%
|