deploy Windows setup exe via AppVeyor only
This commit is contained in:
@@ -38,8 +38,7 @@ notifications:
|
|||||||
skip_join: true
|
skip_join: true
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
- apt-get download nsis nsis-common markdown
|
- apt-get download markdown
|
||||||
- dpkg -x nsis*deb $HOME
|
|
||||||
- dpkg -x markdown*deb $HOME
|
- dpkg -x markdown*deb $HOME
|
||||||
- export PATH=$PATH:$HOME/usr/bin
|
- export PATH=$PATH:$HOME/usr/bin
|
||||||
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
|
- DOTVERSION=`echo ${TRAVIS_TAG} | sed "s/-/\\./g"`
|
||||||
@@ -51,7 +50,6 @@ deploy:
|
|||||||
api_key:
|
api_key:
|
||||||
secure: "g/LU11f+mjqv+lj0sR1UliHwogXL4ofJUwoG5Dbqlvdf5UTLWytw/OWSCv8RGyuh10miyWeaoqHh1cn2C1IFhUEqN1sSeKKKOWOTvJ2FR5mzi9uH3d/MOBzG5icQ7Qh0fZ1YPz5RaJJhYu6bmfvA/1gD49GoaX2kxQL4J5cEBgg="
|
secure: "g/LU11f+mjqv+lj0sR1UliHwogXL4ofJUwoG5Dbqlvdf5UTLWytw/OWSCv8RGyuh10miyWeaoqHh1cn2C1IFhUEqN1sSeKKKOWOTvJ2FR5mzi9uH3d/MOBzG5icQ7Qh0fZ1YPz5RaJJhYu6bmfvA/1gD49GoaX2kxQL4J5cEBgg="
|
||||||
file:
|
file:
|
||||||
- build/OpenRA-${TRAVIS_TAG}.exe
|
|
||||||
- build/OpenRA-${TRAVIS_TAG}.zip
|
- build/OpenRA-${TRAVIS_TAG}.zip
|
||||||
- build/openra_${DOTVERSION}_all.deb
|
- build/openra_${DOTVERSION}_all.deb
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|||||||
27
appveyor.yml
27
appveyor.yml
@@ -1,9 +1,32 @@
|
|||||||
version: 1.0.{build}
|
version: 1.0.{build}
|
||||||
|
|
||||||
|
environment:
|
||||||
|
NSIS_ROOT: C:\nsis
|
||||||
|
|
||||||
|
install:
|
||||||
|
- appveyor DownloadFile "http://downloads.sourceforge.net/project/nsis/NSIS 2/2.46/nsis-2.46-setup.exe" -FileName nsissetup.exe
|
||||||
|
- nsissetup /S /D=%NSIS_ROOT%
|
||||||
|
|
||||||
before_build:
|
before_build:
|
||||||
- make dependencies
|
- make dependencies
|
||||||
|
|
||||||
build:
|
build:
|
||||||
project: OpenRA.sln
|
project: OpenRA.sln
|
||||||
verbosity: minimal
|
verbosity: minimal
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- nunit-console-x86.exe OpenRA.Test.dll
|
- nunit-console-x86.exe OpenRA.Test.dll
|
||||||
deploy: off
|
|
||||||
|
before_deploy:
|
||||||
|
- make docs
|
||||||
|
- cp OpenRA.Game/OpenRA.ico .
|
||||||
|
- appveyor DownloadFile "https://raw.githubusercontent.com/wiki/OpenRA/OpenRA/Changelog.md" -FileName Changelog.md
|
||||||
|
- '%NSIS_ROOT%\makensis /DSRCDIR="%APPVEYOR_BUILD_FOLDER%" /DDEPSDIR="%APPVEYOR_BUILD_FOLDER%\thirdparty\windows" /V3 packaging/windows/OpenRA.nsi'
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
- provider: GitHub
|
||||||
|
auth_token:
|
||||||
|
secure: Z7RC+ckfvf7Kxf2EdWZCP7bgGjRnhgbMeieQP6VVhiZprwvbEzGXI2Wma+FGAq65
|
||||||
|
artifact: packaging\windows\OpenRA.Setup.exe
|
||||||
|
on:
|
||||||
|
appveyor_repo_tag: true
|
||||||
6
make.ps1
6
make.ps1
@@ -30,6 +30,7 @@ if ($args.Length -eq 0)
|
|||||||
echo " 'dependencies' commands to restore removed files."
|
echo " 'dependencies' commands to restore removed files."
|
||||||
echo " test Tests the default mods for errors."
|
echo " test Tests the default mods for errors."
|
||||||
echo " check Checks .cs files for StyleCop violations."
|
echo " check Checks .cs files for StyleCop violations."
|
||||||
|
echo " docs Generates the trait and Lua API documentation."
|
||||||
echo ""
|
echo ""
|
||||||
$command = (Read-Host "Enter command").Split(' ', 2)
|
$command = (Read-Host "Enter command").Split(' ', 2)
|
||||||
}
|
}
|
||||||
@@ -156,6 +157,11 @@ elseif ($command -eq "check")
|
|||||||
echo "Checking for code style violations in OpenRA.TilesetBuilder..."
|
echo "Checking for code style violations in OpenRA.TilesetBuilder..."
|
||||||
./OpenRA.Utility.exe cnc --check-code-style OpenRA.TilesetBuilder
|
./OpenRA.Utility.exe cnc --check-code-style OpenRA.TilesetBuilder
|
||||||
}
|
}
|
||||||
|
elseif ($command -eq "docs")
|
||||||
|
{
|
||||||
|
./OpenRA.Utility.exe d2k --docs | Out-File DOCUMENTATION.md
|
||||||
|
./OpenRA.Utility.exe ra --lua-docs | Out-File Lua-API.md
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo ("Invalid command '{0}'" -f $command)
|
echo ("Invalid command '{0}'" -f $command)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# OpenRA master packaging script
|
# OpenRA master packaging script
|
||||||
|
|
||||||
if [ $# -ne "2" ]; then
|
if [ $# -ne "2" ]; then
|
||||||
echo "Usage: `basename $0` version outputdir"
|
echo "Usage: `basename $0` version outputdir"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ FILES=('OpenRA.Game.exe' 'OpenRA.Editor.exe' 'OpenRA.Utility.exe' \
|
|||||||
|
|
||||||
echo "Copying files..."
|
echo "Copying files..."
|
||||||
for i in "${FILES[@]}"; do
|
for i in "${FILES[@]}"; do
|
||||||
cp -R "${i}" "packaging/built/${i}" || exit 3
|
cp -R "${i}" "packaging/built/${i}" || exit 3
|
||||||
done
|
done
|
||||||
|
|
||||||
# SharpZipLib for zip file support
|
# SharpZipLib for zip file support
|
||||||
@@ -74,15 +74,19 @@ cp OpenRA.exe packaging/built
|
|||||||
cd packaging
|
cd packaging
|
||||||
echo "Creating packages..."
|
echo "Creating packages..."
|
||||||
|
|
||||||
pushd windows
|
if [ -x /usr/bin/makensis ]; then
|
||||||
echo "Building Windows setup.exe"
|
pushd windows
|
||||||
makensis -V2 -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/windows" OpenRA.nsi
|
echo "Building Windows setup.exe"
|
||||||
if [ $? -eq 0 ]; then
|
makensis -V2 -DSRCDIR="$BUILTDIR" -DDEPSDIR="${SRCDIR}/thirdparty/windows" OpenRA.nsi
|
||||||
mv OpenRA.exe "$OUTPUTDIR"/OpenRA-$TAG.exe
|
if [ $? -eq 0 ]; then
|
||||||
|
mv OpenRA.Setup.exe "$OUTPUTDIR"/OpenRA-$TAG.exe
|
||||||
|
else
|
||||||
|
echo "Windows package build failed."
|
||||||
|
fi
|
||||||
|
popd
|
||||||
else
|
else
|
||||||
echo "Windows package build failed."
|
echo "Skipping Windows setup.exe build due to missing NSIS"
|
||||||
fi
|
fi
|
||||||
popd
|
|
||||||
|
|
||||||
pushd osx
|
pushd osx
|
||||||
echo "Zipping OS X package"
|
echo "Zipping OS X package"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
; Copyright 2007-2014 OpenRA developers (see AUTHORS)
|
; Copyright 2007-2015 OpenRA developers (see AUTHORS)
|
||||||
; This file is part of OpenRA.
|
; This file is part of OpenRA.
|
||||||
;
|
;
|
||||||
; OpenRA is free software: you can redistribute it and/or modify
|
; OpenRA is free software: you can redistribute it and/or modify
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
!include "WordFunc.nsh"
|
!include "WordFunc.nsh"
|
||||||
|
|
||||||
Name "OpenRA"
|
Name "OpenRA"
|
||||||
OutFile "OpenRA.exe"
|
OutFile "OpenRA.Setup.exe"
|
||||||
|
|
||||||
InstallDir $PROGRAMFILES\OpenRA
|
InstallDir $PROGRAMFILES\OpenRA
|
||||||
InstallDirRegKey HKLM "Software\OpenRA" "InstallDir"
|
InstallDirRegKey HKLM "Software\OpenRA" "InstallDir"
|
||||||
@@ -75,10 +75,10 @@ Section "Game" GAME
|
|||||||
File "${SRCDIR}\Mono.Nat.dll"
|
File "${SRCDIR}\Mono.Nat.dll"
|
||||||
File "${SRCDIR}\AUTHORS"
|
File "${SRCDIR}\AUTHORS"
|
||||||
File "${SRCDIR}\COPYING"
|
File "${SRCDIR}\COPYING"
|
||||||
File "${SRCDIR}\README.html"
|
File "${SRCDIR}\README.md"
|
||||||
File "${SRCDIR}\CHANGELOG.html"
|
File "${SRCDIR}\CHANGELOG.md"
|
||||||
File "${SRCDIR}\CONTRIBUTING.html"
|
File "${SRCDIR}\CONTRIBUTING.md"
|
||||||
File "${SRCDIR}\DOCUMENTATION.html"
|
File "${SRCDIR}\DOCUMENTATION.md"
|
||||||
File "${SRCDIR}\OpenRA.ico"
|
File "${SRCDIR}\OpenRA.ico"
|
||||||
File "${SRCDIR}\SharpFont.dll"
|
File "${SRCDIR}\SharpFont.dll"
|
||||||
File "${SRCDIR}\SDL2-CS.dll"
|
File "${SRCDIR}\SDL2-CS.dll"
|
||||||
@@ -99,8 +99,8 @@ Section "Game" GAME
|
|||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA.lnk" $OUTDIR\OpenRA.exe "" \
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA.lnk" $OUTDIR\OpenRA.exe "" \
|
||||||
"$OUTDIR\OpenRA.exe" "" "" "" ""
|
"$OUTDIR\OpenRA.exe" "" "" "" ""
|
||||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\README.lnk" $OUTDIR\README.html "" \
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\README.lnk" $OUTDIR\README.md "" \
|
||||||
"$OUTDIR\README.html" "" "" "" ""
|
"$OUTDIR\README.md" "" "" "" ""
|
||||||
!insertmacro MUI_STARTMENU_WRITE_END
|
!insertmacro MUI_STARTMENU_WRITE_END
|
||||||
|
|
||||||
SetOutPath "$INSTDIR\lua"
|
SetOutPath "$INSTDIR\lua"
|
||||||
@@ -193,10 +193,10 @@ Function ${UN}Clean
|
|||||||
Delete $INSTDIR\SharpFont.dll
|
Delete $INSTDIR\SharpFont.dll
|
||||||
Delete $INSTDIR\AUTHORS
|
Delete $INSTDIR\AUTHORS
|
||||||
Delete $INSTDIR\COPYING
|
Delete $INSTDIR\COPYING
|
||||||
Delete $INSTDIR\README.html
|
Delete $INSTDIR\README.md
|
||||||
Delete $INSTDIR\CHANGELOG.html
|
Delete $INSTDIR\CHANGELOG.md
|
||||||
Delete $INSTDIR\CONTRIBUTING.html
|
Delete $INSTDIR\CONTRIBUTING.md
|
||||||
Delete $INSTDIR\DOCUMENTATION.html
|
Delete $INSTDIR\DOCUMENTATION.md
|
||||||
Delete $INSTDIR\OpenRA.ico
|
Delete $INSTDIR\OpenRA.ico
|
||||||
Delete "$INSTDIR\global mix database.dat"
|
Delete "$INSTDIR\global mix database.dat"
|
||||||
Delete $INSTDIR\MaxMind.Db.dll
|
Delete $INSTDIR\MaxMind.Db.dll
|
||||||
|
|||||||
Reference in New Issue
Block a user