Permalink
Browse files

Rewrite of packager script so it can be run per configuration

  • Loading branch information...
x1nixmzeng committed Dec 7, 2017
1 parent 30dd6de commit 56ac7f86a4eebbfcfe9c8928fe764b01af5ca92a
Showing with 37 additions and 9 deletions.
  1. +0 −6 AppveyorPackager.ps1
  2. +35 −0 PackageBuild.bat
  3. +2 −3 appveyor.yml
View

This file was deleted.

Oops, something went wrong.
View
@@ -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
View
@@ -13,10 +13,9 @@ build:
parallel: true
verbosity: minimal
after_build:
- ps: .\AppveyorPackager.ps1
- cmd: PackageBuild.bat "$env:configuration"
artifacts:
- path: export\Release.zip
- path: export\Debug.zip
- path: export
install:
# Git clone happens between init and install
- cmd: git submodule update --init --recursive

0 comments on commit 56ac7f8

Please sign in to comment.