File tree 3 files changed +15
-1
lines changed
3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,14 @@ install -m 0755 openra-mod.temp "${BUILTDIR}/usr/bin/openra-${MOD_ID}"
142
142
sed " s/{MODID}/${MOD_ID} /g" include/mod-server.in > openra-mod-server.temp
143
143
install -m 0755 openra-mod-server.temp " ${BUILTDIR} /usr/bin/openra-${MOD_ID} -server"
144
144
145
+ sed " s/{MODID}/${MOD_ID} /g" include/mod-utility.in > openra-mod-utility.temp
146
+ install -m 0755 openra-mod-utility.temp " ${BUILTDIR} /usr/bin/openra-${MOD_ID} -utility"
147
+
145
148
install -m 0755 include/gtk-dialog.py " ${BUILTDIR} /usr/bin/gtk-dialog.py"
146
149
147
150
# travis-ci doesn't support mounting FUSE filesystems so extract and run the contents manually
148
151
./appimagetool-x86_64.AppImage --appimage-extract
149
152
ARCH=x86_64 ./squashfs-root/AppRun " ${BUILTDIR} " " ${OUTPUTDIR} /${PACKAGING_INSTALLER_NAME} -${TAG} .AppImage"
150
153
151
154
# Clean up
152
- 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} "
155
+ 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} "
Original file line number Diff line number Diff line change 70
70
71
71
# Run the game or server
72
72
if [ -n " $1 " ] && [ " $1 " = " --server" ]; then
73
+ # Drop the --server argument
74
+ shift
73
75
exec " openra-{MODID}-server" " $@ "
76
+ elif [ -n " $1 " ] && [ " $1 " = " --utility" ]; then
77
+ # Drop the --utility argument
78
+ shift
79
+ exec " openra-{MODID}-utility" " $@ "
74
80
else
75
81
exec " openra-{MODID}" " $@ "
76
82
fi
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # OpenRA.Utility relies on keeping the original working directory, so don't change directory
4
+ HERE=" $( dirname " $( readlink -f " ${0} " ) " ) "
5
+ mono --debug ${HERE} /../lib/openra/OpenRA.Utility.exe {MODID} " $@ "
You can’t perform that action at this time.
0 commit comments