Register default mods during installation on Debian/Ubuntu.
This commit is contained in:
8
packaging/linux/deb/DEBIAN/postinst
Executable file
8
packaging/linux/deb/DEBIAN/postinst
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Register default mods for in-game switching
|
||||
mkdir -p "{SYSTEMSUPPORTDIR}/ModMetadata"
|
||||
mono {LIBDIR}/OpenRA.Utility.exe ra --register-mod /usr/games/openra-ra system
|
||||
mono {LIBDIR}/OpenRA.Utility.exe cnc --register-mod /usr/games/openra-cnc system
|
||||
mono {LIBDIR}/OpenRA.Utility.exe d2k --register-mod /usr/games/openra-d2k system
|
||||
6
packaging/linux/deb/DEBIAN/prerm
Executable file
6
packaging/linux/deb/DEBIAN/prerm
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
mono {LIBDIR}/OpenRA.Utility.exe ra --unregister-mod system
|
||||
mono {LIBDIR}/OpenRA.Utility.exe cnc --unregister-mod system
|
||||
mono {LIBDIR}/OpenRA.Utility.exe d2k --unregister-mod system
|
||||
Reference in New Issue
Block a user