Produce a windows installer (untested).
This commit is contained in:
@@ -20,6 +20,7 @@ cp -R "$2/" "OpenRA.app/Contents/Resources/" || exit 3
|
|||||||
# Remove the tao and WindowsBase dlls (which are shipped with the deps package)
|
# Remove the tao and WindowsBase dlls (which are shipped with the deps package)
|
||||||
rm OpenRA.app/Contents/Resources/Tao.*
|
rm OpenRA.app/Contents/Resources/Tao.*
|
||||||
rm OpenRA.app/Contents/Resources/WindowsBase.dll
|
rm OpenRA.app/Contents/Resources/WindowsBase.dll
|
||||||
|
rm OpenRA.app/Contents/Resources/OpenRA.ico
|
||||||
|
|
||||||
# Package app bundle into a zip and clean up
|
# Package app bundle into a zip and clean up
|
||||||
zip OpenRA-$1 -r -9 OpenRA.app
|
zip OpenRA-$1 -r -9 OpenRA.app
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ mkdir packaging/built/mods
|
|||||||
# List of files that are packaged on all platforms
|
# List of files that are packaged on all platforms
|
||||||
# Note that the Tao dlls are shipped on all platforms except osx
|
# Note that the Tao dlls are shipped on all platforms except osx
|
||||||
# and that they are now installed to the game directory instead of being placed in the gac
|
# and that they are now installed to the game directory instead of being placed in the gac
|
||||||
FILES="OpenRA.Game.exe OpenRA.Editor.exe OpenRA.Gl.dll OpenRA.FileFormats.dll FreeSans.ttf FreeSansBold.ttf titles.ttf shaders mods/ra mods/cnc VERSION"
|
FILES="OpenRA.Game.exe OpenRA.Editor.exe OpenRA.Gl.dll OpenRA.FileFormats.dll FreeSans.ttf FreeSansBold.ttf titles.ttf shaders mods/ra mods/cnc VERSION COPYING HACKING INSTALL"
|
||||||
|
|
||||||
# Files that match the above patterns, that should be excluded
|
# Files that match the above patterns, that should be excluded
|
||||||
EXCLUDE="*.mdb"
|
EXCLUDE="*.mdb"
|
||||||
@@ -39,21 +39,23 @@ cp thirdparty/Tao/* packaging/built
|
|||||||
# Copy WindowsBase.dll for linux packages
|
# Copy WindowsBase.dll for linux packages
|
||||||
cp thirdparty/WindowsBase.dll packaging/built
|
cp thirdparty/WindowsBase.dll packaging/built
|
||||||
|
|
||||||
|
# Copy game icon for windows package
|
||||||
|
cp OpenRA.Game/OpenRA.ico packaging/built
|
||||||
|
|
||||||
# Change into packaging directory and run the platform-dependant packaging in parallel
|
# Change into packaging directory and run the platform-dependant packaging in parallel
|
||||||
cd packaging
|
cd packaging
|
||||||
|
|
||||||
# ####### Windows #######
|
# ####### Windows #######
|
||||||
# (
|
(
|
||||||
# msg "\E[34m" "Building Windows package."
|
echo "Building Windows package."
|
||||||
# pushd windows/ &> /dev/null
|
cd windows
|
||||||
# makensis -DSRCDIR="$SRCDIR" OpenRA.nsi &> package.log
|
makensis -DSRCDIR="$BUILTDIR" OpenRA.nsi &> package.log
|
||||||
# if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
# mv OpenRA.exe "$PACKAGEDIR"OpenRA-$VERSION.exe
|
mv OpenRA.exe "$PACKAGEDIR"/OpenRA-$VERSION.exe
|
||||||
# else
|
else
|
||||||
# msg "\E[31m" "Windows package build failed, refer to $PWD/package.log."
|
echo "Windows package build failed, refer to $PWD/package.log."
|
||||||
# fi
|
fi
|
||||||
# popd &> /dev/null
|
) &
|
||||||
# ) &
|
|
||||||
|
|
||||||
####### OSX #######
|
####### OSX #######
|
||||||
(
|
(
|
||||||
|
|||||||
@@ -83,10 +83,8 @@ Section "Client" Client
|
|||||||
File "${SRCDIR}\INSTALL"
|
File "${SRCDIR}\INSTALL"
|
||||||
File "${SRCDIR}\*.ttf"
|
File "${SRCDIR}\*.ttf"
|
||||||
File "${SRCDIR}\VERSION"
|
File "${SRCDIR}\VERSION"
|
||||||
|
File "${SRCDIR}\OpenRA.ico"
|
||||||
File "${SRCDIR}\OpenRA.Game\OpenRA.ico"
|
File "${SRCDIR}\Tao.*.dll"
|
||||||
|
|
||||||
File "${SRCDIR}\thirdparty\Tao\*.dll"
|
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
@@ -98,8 +96,6 @@ Section "Client" Client
|
|||||||
|
|
||||||
SetOutPath "$INSTDIR\shaders"
|
SetOutPath "$INSTDIR\shaders"
|
||||||
File "${SRCDIR}\shaders\*.fx"
|
File "${SRCDIR}\shaders\*.fx"
|
||||||
SetOutPath "$INSTDIR\maps"
|
|
||||||
File "${SRCDIR}\maps\README"
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Editor" Editor
|
Section "Editor" Editor
|
||||||
|
|||||||
Reference in New Issue
Block a user