From 50a3b41eb24bbc62c82a7d8878782c1ef51dd731 Mon Sep 17 00:00:00 2001 From: zeromus Date: Sat, 2 Apr 2016 14:45:20 -0500 Subject: [PATCH] straighten out master vs release dist scripts --- Dist/BuildGithubMasterBranch.bat | 30 ++++++++++++++++++++++++++++++ Dist/BuildGithubReleaseBranch.bat | 4 ++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 Dist/BuildGithubMasterBranch.bat diff --git a/Dist/BuildGithubMasterBranch.bat b/Dist/BuildGithubMasterBranch.bat new file mode 100644 index 0000000000..a6c60620f4 --- /dev/null +++ b/Dist/BuildGithubMasterBranch.bat @@ -0,0 +1,30 @@ +set OUTFILE=BizHawk-Github-Master.zip +set WORKDIR=.build-github-master + +set PATH=%PATH%;C:\Program Files (x86)\git\bin;C:\Program Files\git\bin + +rem cleanup old working and output files +del ..\..\%OUTFILE% +rmdir /s /q %WORKDIR% + +rem prepare working directory for clone +mkdir %WORKDIR% + +rem http://stackoverflow.com/questions/13750182/git-how-to-archive-from-remote-repository-directly +cd %WORKDIR% +git clone --depth=1 --single-branch --branch master http://github.com/TASVideos/BizHawk.git . + +rem use updated build scripts +copy /y ..\BuildAndPackage_Release.bat dist +copy /y ..\BuildAndPackage.bat dist + +rem build the branch +cd dist +call BuildAndPackage_Release.bat + +rem make sure we save the output! +move BizHawk.zip ..\..\%OUTFILE% + +rem cleanup +cd ..\.. +rmdir /s /q %WORKDIR% \ No newline at end of file diff --git a/Dist/BuildGithubReleaseBranch.bat b/Dist/BuildGithubReleaseBranch.bat index 2a706227ec..0e28bdf291 100644 --- a/Dist/BuildGithubReleaseBranch.bat +++ b/Dist/BuildGithubReleaseBranch.bat @@ -1,5 +1,5 @@ -set OUTFILE=BizHawk-Github-Master.zip -set WORKDIR=.build-github-master +set OUTFILE=BizHawk-Github-Release.zip +set WORKDIR=.build-github-release set PATH=%PATH%;C:\Program Files (x86)\git\bin;C:\Program Files\git\bin