A few fixes when running package scripts under debian.
This commit is contained in:
@@ -7,11 +7,9 @@ then
|
|||||||
exit $E_BADARGS
|
exit $E_BADARGS
|
||||||
fi
|
fi
|
||||||
VERSION=$1
|
VERSION=$1
|
||||||
|
PACKAGE_SIZE=`du --apparent-size -c $2/usr | grep "total" | awk '{print $1}'`
|
||||||
|
|
||||||
# HACK: bsd du doesn't like --apparant-size; remember to add back when running on debian
|
# Copy template files into a clean build directory (required)
|
||||||
PACKAGE_SIZE=`du -c $2/usr | grep "total" | awk '{print $1}'`
|
|
||||||
|
|
||||||
# Copy our two needed folders to a clean package directory (yes, this is needed)
|
|
||||||
mkdir root
|
mkdir root
|
||||||
cp -R DEBIAN root
|
cp -R DEBIAN root
|
||||||
cp -R $2/usr root
|
cp -R $2/usr root
|
||||||
|
|||||||
3
packaging/linux/openra
Executable file
3
packaging/linux/openra
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd /usr/share/openra
|
||||||
|
mono /usr/share/openra/OpenRA.Game.exe SupportDir=~/.openra "$@"
|
||||||
@@ -15,12 +15,15 @@ fi
|
|||||||
# Copy the template to build the game package
|
# Copy the template to build the game package
|
||||||
# Assumes it is layed out with the correct directory structure
|
# Assumes it is layed out with the correct directory structure
|
||||||
cp -rv template.app OpenRA.app
|
cp -rv template.app OpenRA.app
|
||||||
cp -R "$2/" "OpenRA.app/Contents/Resources/" || exit 3
|
cp -rv $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 (they are shipped in 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
|
||||||
|
|
||||||
|
# Icon isn't used, and editor doesn't work under mono 2.8
|
||||||
rm OpenRA.app/Contents/Resources/OpenRA.ico
|
rm OpenRA.app/Contents/Resources/OpenRA.ico
|
||||||
|
rm OpenRA.app/Contents/Resources/OpenRA.Editor.exe
|
||||||
|
|
||||||
# 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
|
||||||
|
|||||||
@@ -45,7 +45,6 @@ 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 #######
|
|
||||||
(
|
(
|
||||||
echo "Building Windows package."
|
echo "Building Windows package."
|
||||||
cd windows
|
cd windows
|
||||||
@@ -53,27 +52,25 @@ cd packaging
|
|||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
mv OpenRA.exe "$PACKAGEDIR"/OpenRA-$VERSION.exe
|
mv OpenRA.exe "$PACKAGEDIR"/OpenRA-$VERSION.exe
|
||||||
else
|
else
|
||||||
echo "Windows package build failed, refer to $PWD/package.log."
|
echo "Windows package build failed, refer to windows/package.log."
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
####### OSX #######
|
|
||||||
(
|
(
|
||||||
echo "Building OSX package."
|
echo "Building OSX package."
|
||||||
cd osx
|
cd osx
|
||||||
sh buildpackage.sh "$VERSION" "$BUILTDIR" "$PACKAGEDIR" &> package.log
|
sh buildpackage.sh "$VERSION" "$BUILTDIR" "$PACKAGEDIR" &> package.log
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "OSX package build failed, refer to $PWD/package.log."
|
echo "OSX package build failed, refer to osx/package.log."
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
|
|
||||||
####### Linux #######
|
|
||||||
(
|
(
|
||||||
echo "Building linux common."
|
echo "Building linux packages."
|
||||||
cd linux
|
cd linux
|
||||||
sh buildpackage.sh "$VERSION" "$BUILTDIR" "$PACKAGEDIR" &> package.log
|
sh buildpackage.sh "$VERSION" "$BUILTDIR" "$PACKAGEDIR" &> package.log
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "linux package build failed, refer to $PWD/package.log."
|
echo "linux package build failed, refer to linux/package.log."
|
||||||
fi
|
fi
|
||||||
) &
|
) &
|
||||||
wait
|
wait
|
||||||
|
|||||||
Reference in New Issue
Block a user