Create separate Linux launchers for each mod.

This commit is contained in:
Paul Chote
2017-04-16 16:11:14 +00:00
parent 62b0be9db8
commit b24e681531
25 changed files with 349 additions and 58 deletions

16
packaging/linux/openra.in Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/sh
cd "{GAME_INSTALL_DIR}"
mono {DEBUG} OpenRA.Game.exe Game.Mod={MOD} Engine.LaunchPath="{BIN_DIR}/openra-{MOD}" "$@"
# Show a crash dialog if required
if [ $? != 0 ] && [ $? != 1 ]
then
if which zenity > /dev/null
then
zenity --question --title "{MODNAME}" --text "{MODNAME} has encountered a fatal error.\nLog Files are available in ~/.openra." --ok-label "Quit" --cancel-label "View FAQ" || xdg-open https://github.com/OpenRA/OpenRA/wiki/FAQ
else
printf "{MODNAME} has encountered a fatal error.\n -> Log Files are available in ~/.openra\n -> FAQ is available at https://github.com/OpenRA/OpenRA/wiki/FAQ\n"
fi
exit 1
fi