deploy Windows setup exe via AppVeyor only

This commit is contained in:
Matthias Mailänder
2015-01-17 13:18:11 +01:00
parent 55b858051d
commit 601022f582
5 changed files with 57 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
# OpenRA master packaging script
if [ $# -ne "2" ]; then
echo "Usage: `basename $0` version outputdir"
echo "Usage: `basename $0` version outputdir"
exit 1
fi
@@ -38,7 +38,7 @@ FILES=('OpenRA.Game.exe' 'OpenRA.Editor.exe' 'OpenRA.Utility.exe' \
echo "Copying files..."
for i in "${FILES[@]}"; do
cp -R "${i}" "packaging/built/${i}" || exit 3
cp -R "${i}" "packaging/built/${i}" || exit 3
done
# SharpZipLib for zip file support
@@ -74,15 +74,19 @@ cp OpenRA.exe packaging/built
cd packaging
echo "Creating packages..."
pushd windows
echo "Building Windows setup.exe"
makensis -V2 -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/windows" OpenRA.nsi
if [ $? -eq 0 ]; then
mv OpenRA.exe "$OUTPUTDIR"/OpenRA-$TAG.exe
if [ -x /usr/bin/makensis ]; then
pushd windows
echo "Building Windows setup.exe"
makensis -V2 -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/windows" OpenRA.nsi
if [ $? -eq 0 ]; then
mv OpenRA.Setup.exe "$OUTPUTDIR"/OpenRA-$TAG.exe
else
echo "Windows package build failed."
fi
popd
else
echo "Windows package build failed."
echo "Skipping Windows setup.exe build due to missing NSIS"
fi
popd
pushd osx
echo "Zipping OS X package"

View File

@@ -1,4 +1,4 @@
; Copyright 2007-2014 OpenRA developers (see AUTHORS)
; Copyright 2007-2015 OpenRA developers (see AUTHORS)
; This file is part of OpenRA.
;
; OpenRA is free software: you can redistribute it and/or modify
@@ -20,7 +20,7 @@
!include "WordFunc.nsh"
Name "OpenRA"
OutFile "OpenRA.exe"
OutFile "OpenRA.Setup.exe"
InstallDir $PROGRAMFILES\OpenRA
InstallDirRegKey HKLM "Software\OpenRA" "InstallDir"
@@ -75,10 +75,10 @@ Section "Game" GAME
File "${SRCDIR}\Mono.Nat.dll"
File "${SRCDIR}\AUTHORS"
File "${SRCDIR}\COPYING"
File "${SRCDIR}\README.html"
File "${SRCDIR}\CHANGELOG.html"
File "${SRCDIR}\CONTRIBUTING.html"
File "${SRCDIR}\DOCUMENTATION.html"
File "${SRCDIR}\README.md"
File "${SRCDIR}\CHANGELOG.md"
File "${SRCDIR}\CONTRIBUTING.md"
File "${SRCDIR}\DOCUMENTATION.md"
File "${SRCDIR}\OpenRA.ico"
File "${SRCDIR}\SharpFont.dll"
File "${SRCDIR}\SDL2-CS.dll"
@@ -99,8 +99,8 @@ Section "Game" GAME
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA.lnk" $OUTDIR\OpenRA.exe "" \
"$OUTDIR\OpenRA.exe" "" "" "" ""
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\README.lnk" $OUTDIR\README.html "" \
"$OUTDIR\README.html" "" "" "" ""
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\README.lnk" $OUTDIR\README.md "" \
"$OUTDIR\README.md" "" "" "" ""
!insertmacro MUI_STARTMENU_WRITE_END
SetOutPath "$INSTDIR\lua"
@@ -193,10 +193,10 @@ Function ${UN}Clean
Delete $INSTDIR\SharpFont.dll
Delete $INSTDIR\AUTHORS
Delete $INSTDIR\COPYING
Delete $INSTDIR\README.html
Delete $INSTDIR\CHANGELOG.html
Delete $INSTDIR\CONTRIBUTING.html
Delete $INSTDIR\DOCUMENTATION.html
Delete $INSTDIR\README.md
Delete $INSTDIR\CHANGELOG.md
Delete $INSTDIR\CONTRIBUTING.md
Delete $INSTDIR\DOCUMENTATION.md
Delete $INSTDIR\OpenRA.ico
Delete "$INSTDIR\global mix database.dat"
Delete $INSTDIR\MaxMind.Db.dll