Remove native code from deb packages.
This commit is contained in:
2
Makefile
2
Makefile
@@ -258,7 +258,7 @@ core: game renderers mods utility ralint
|
|||||||
|
|
||||||
tools: editor tsbuild gamemonitor
|
tools: editor tsbuild gamemonitor
|
||||||
|
|
||||||
package: dependencies core editor gamemonitor docs version
|
package: cli-dependencies core editor gamemonitor docs version
|
||||||
|
|
||||||
mods: mod_common mod_ra mod_cnc mod_d2k mod_ts
|
mods: mod_common mod_ra mod_cnc mod_d2k mod_ts
|
||||||
|
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# OpenRA packaging master script for linux packages
|
# OpenRA packaging master script for linux packages
|
||||||
|
|
||||||
if [ $# -ne "4" ]; then
|
if [ $# -ne "3" ]; then
|
||||||
echo "Usage: `basename $0` tag files-dir platform-files-dir outputdir"
|
echo "Usage: `basename $0` tag files-dir outputdir"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TAG=$1
|
TAG=$1
|
||||||
VERSION=`echo $TAG | grep -o "[0-9]\\+-\\?[0-9]\\?"`
|
VERSION=`echo $TAG | grep -o "[0-9]\\+-\\?[0-9]\\?"`
|
||||||
BUILTDIR=$2
|
BUILTDIR=$2
|
||||||
DEPSDIR=$3
|
PACKAGEDIR=$3
|
||||||
PACKAGEDIR=$4
|
|
||||||
ROOTDIR=root
|
ROOTDIR=root
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
@@ -21,8 +20,6 @@ cd ../..
|
|||||||
# Copy files for OpenRA.Game.exe and OpenRA.Editor.exe as well as all dependencies.
|
# Copy files for OpenRA.Game.exe and OpenRA.Editor.exe as well as all dependencies.
|
||||||
make install-all prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
make install-all prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
||||||
|
|
||||||
cp $DEPSDIR/* $PWD/packaging/linux/$ROOTDIR/usr/lib/openra/
|
|
||||||
|
|
||||||
# Install startup scripts, desktop files and icons
|
# Install startup scripts, desktop files and icons
|
||||||
make install-linux-shortcuts prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
make install-linux-shortcuts prefix="/usr" DESTDIR="$PWD/packaging/linux/$ROOTDIR"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ Version: {VERSION}
|
|||||||
Architecture: all
|
Architecture: all
|
||||||
Maintainer: Chris Forbes <chrisf@ijw.co.nz>
|
Maintainer: Chris Forbes <chrisf@ijw.co.nz>
|
||||||
Installed-Size: {SIZE}
|
Installed-Size: {SIZE}
|
||||||
Depends: libopenal1, mono-runtime (>= 2.10), libmono-system-core4.0-cil, libmono-system-drawing4.0-cil, libmono-system-windows-forms4.0-cil, libfreetype6, libc6, libasound2, libgl1-mesa-glx, libgl1-mesa-dri, xdg-utils, zenity
|
Depends: libopenal1, mono-runtime (>= 2.10), libmono-system-core4.0-cil, libmono-system-drawing4.0-cil, libmono-system-windows-forms4.0-cil, libfreetype6, libc6, libasound2, libgl1-mesa-glx, libgl1-mesa-dri, xdg-utils, zenity, libsdl2 | libsdl2-2.0-0, liblua5.1-0
|
||||||
Section: games
|
Section: games
|
||||||
Priority: extra
|
Priority: extra
|
||||||
Homepage: http://www.openra.net/
|
Homepage: http://www.openra.net/
|
||||||
|
|||||||
3
packaging/linux/deb/Eluant.dll.config
Normal file
3
packaging/linux/deb/Eluant.dll.config
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<configuration>
|
||||||
|
<dllmap os="linux" dll="lua51.dll" target="liblua5.1.so.0" />
|
||||||
|
</configuration>
|
||||||
@@ -21,6 +21,7 @@ VERSION="$DATE.$TYPE"
|
|||||||
mkdir "${DEB_BUILD_ROOT}"
|
mkdir "${DEB_BUILD_ROOT}"
|
||||||
cp -R DEBIAN "${DEB_BUILD_ROOT}"
|
cp -R DEBIAN "${DEB_BUILD_ROOT}"
|
||||||
cp -R "${LINUX_BUILD_ROOT}/usr" "${DEB_BUILD_ROOT}"
|
cp -R "${LINUX_BUILD_ROOT}/usr" "${DEB_BUILD_ROOT}"
|
||||||
|
cp -R Eluant.dll.config "${DEB_BUILD_ROOT}/${LIBDIR}/"
|
||||||
|
|
||||||
# Binaries go in /usr/games
|
# Binaries go in /usr/games
|
||||||
mv "${DEB_BUILD_ROOT}/usr/bin/" "${DEB_BUILD_ROOT}/usr/games/"
|
mv "${DEB_BUILD_ROOT}/usr/bin/" "${DEB_BUILD_ROOT}/usr/games/"
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ popd
|
|||||||
|
|
||||||
pushd linux
|
pushd linux
|
||||||
echo "Building Linux packages"
|
echo "Building Linux packages"
|
||||||
bash buildpackage.sh "$TAG" "$BUILTDIR" "${SRCDIR}/thirdparty/linux" "$OUTPUTDIR"
|
bash buildpackage.sh "$TAG" "$BUILTDIR" "$OUTPUTDIR"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "Linux package build failed."
|
echo "Linux package build failed."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user