Add a --utility argument to the AppImage.
This commit is contained in:
parent
8a1f1a9706
commit
0228b888af
@ -142,6 +142,9 @@ install -m 0755 openra-mod.temp "${BUILTDIR}/usr/bin/openra-${MOD_ID}"
|
|||||||
sed "s/{MODID}/${MOD_ID}/g" include/mod-server.in > openra-mod-server.temp
|
sed "s/{MODID}/${MOD_ID}/g" include/mod-server.in > openra-mod-server.temp
|
||||||
install -m 0755 openra-mod-server.temp "${BUILTDIR}/usr/bin/openra-${MOD_ID}-server"
|
install -m 0755 openra-mod-server.temp "${BUILTDIR}/usr/bin/openra-${MOD_ID}-server"
|
||||||
|
|
||||||
|
sed "s/{MODID}/${MOD_ID}/g" include/mod-utility.in > openra-mod-utility.temp
|
||||||
|
install -m 0755 openra-mod-utility.temp "${BUILTDIR}/usr/bin/openra-${MOD_ID}-utility"
|
||||||
|
|
||||||
install -m 0755 include/gtk-dialog.py "${BUILTDIR}/usr/bin/gtk-dialog.py"
|
install -m 0755 include/gtk-dialog.py "${BUILTDIR}/usr/bin/gtk-dialog.py"
|
||||||
|
|
||||||
# travis-ci doesn't support mounting FUSE filesystems so extract and run the contents manually
|
# travis-ci doesn't support mounting FUSE filesystems so extract and run the contents manually
|
||||||
@ -149,4 +152,4 @@ install -m 0755 include/gtk-dialog.py "${BUILTDIR}/usr/bin/gtk-dialog.py"
|
|||||||
ARCH=x86_64 ./squashfs-root/AppRun "${BUILTDIR}" "${OUTPUTDIR}/${PACKAGING_INSTALLER_NAME}-${TAG}.AppImage"
|
ARCH=x86_64 ./squashfs-root/AppRun "${BUILTDIR}" "${OUTPUTDIR}/${PACKAGING_INSTALLER_NAME}-${TAG}.AppImage"
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm -rf openra-mod.temp openra-mod-server.temp temp.desktop temp.xml AppRun.temp libSDL2.so libopenal.so liblua.so appimagetool-x86_64.AppImage squashfs-root "${PACKAGING_APPIMAGE_DEPENDENCIES_TEMP_ARCHIVE_NAME}" "${BUILTDIR}"
|
rm -rf openra-mod.temp openra-mod-server.temp openra-mod-utility.temp temp.desktop temp.xml AppRun.temp libSDL2.so libopenal.so liblua.so appimagetool-x86_64.AppImage squashfs-root "${PACKAGING_APPIMAGE_DEPENDENCIES_TEMP_ARCHIVE_NAME}" "${BUILTDIR}"
|
||||||
|
|||||||
@ -70,7 +70,13 @@ fi
|
|||||||
|
|
||||||
# Run the game or server
|
# Run the game or server
|
||||||
if [ -n "$1" ] && [ "$1" = "--server" ]; then
|
if [ -n "$1" ] && [ "$1" = "--server" ]; then
|
||||||
|
# Drop the --server argument
|
||||||
|
shift
|
||||||
exec "openra-{MODID}-server" "$@"
|
exec "openra-{MODID}-server" "$@"
|
||||||
|
elif [ -n "$1" ] && [ "$1" = "--utility" ]; then
|
||||||
|
# Drop the --utility argument
|
||||||
|
shift
|
||||||
|
exec "openra-{MODID}-utility" "$@"
|
||||||
else
|
else
|
||||||
exec "openra-{MODID}" "$@"
|
exec "openra-{MODID}" "$@"
|
||||||
fi
|
fi
|
||||||
|
|||||||
5
packaging/linux/include/mod-utility.in
Executable file
5
packaging/linux/include/mod-utility.in
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# OpenRA.Utility relies on keeping the original working directory, so don't change directory
|
||||||
|
HERE="$(dirname "$(readlink -f "${0}")")"
|
||||||
|
mono --debug ${HERE}/../lib/openra/OpenRA.Utility.exe {MODID} "$@"
|
||||||
Loading…
Reference in New Issue
Block a user