Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite of packager script so it can be run per configuration
- Loading branch information
1 parent
30dd6de
commit 56ac7f8
Showing
3 changed files
with
37 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@echo off | ||
|
||
@if "%1"=="" goto no_arg | ||
|
||
set BUILD_PATH=build\win32\%1\ | ||
|
||
if not exist COPYING goto no_preq | ||
if not exist README.md goto no_preq | ||
if not exist %BUILD_PATH%Cxbx.exe goto no_build | ||
if not exist %BUILD_PATH%glew32.dll goto no_build | ||
if not exist %BUILD_PATH%subhook.dll goto no_build | ||
|
||
set ZIP_APP="import\7za\7za.exe" | ||
set EXPORT_ZIP=export\%1.zip | ||
|
||
@call %ZIP_APP% a %EXPORT_ZIP% COPYING README.md | ||
cd %BUILD_PATH% | ||
@call ..\..\..\%ZIP_APP% u ..\..\..\%EXPORT_ZIP% Cxbx.exe glew32.dll subhook.dll | ||
cd /d %~dp0 | ||
echo Finished packaging %EXPORT_ZIP%! | ||
goto eof | ||
|
||
:no_preq | ||
echo Missing files from repo | ||
goto eof | ||
|
||
:no_build | ||
echo Missing build at path %BUILD_PATH% | ||
goto eof | ||
|
||
:no_arg | ||
echo "Usage: %0 <build_configuration>" | ||
goto eof | ||
|
||
:eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters