Updated linux packaging scripts to remove the need for post install actions and to use the launcher.

This commit is contained in:
Matthew Bowra-Dean
2011-01-01 16:31:17 +13:00
committed by Chris Forbes
parent a3e67611e6
commit ecea2471ca
16 changed files with 27 additions and 137 deletions

View File

@@ -15,7 +15,6 @@ conflicts=()
replaces=()
backup=()
options=()
install=openra.install
source=()
noextract=()
md5sums=()

View File

@@ -1,35 +0,0 @@
# arg 1: the new package version
post_install() {
cd $pkgdir/usr/share/openra
while true
do
read -s -n1 -p "Download and install RA packages? [Y/n]"
case $REPLY in
y|Y|"")
mono OpenRA.Utility.exe --download-url=http://open-ra.org/get-dependency.php?file=ra-packages,/tmp/ra-packages.zip
mono OpenRA.Utility.exe --extract-zip=/tmp/ra-packages.zip,ra/packages/
break;;
n|N)
echo "The RA packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=ra-packages \
to /usr/share/openra/mods/ra/packages before the RA mod will work."
break;;
*) echo "Please enter y or n.";;
esac
done
while true
do
read -s -n1 -p "Download and install C&C packages? [Y/n]"
case $REPLY in
y|Y|"")
mono OpenRA.Utility.exe --download-url=http://open-ra.org/get-dependency.php?file=cnc-packages,/tmp/cnc-packages.zip
mono OpenRA.Utility.exe --extract-zip=/tmp/cnc-packages.zip,cnc/packages/
break;;
n|N)
echo "The C&C packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=cnc-packages \
to /usr/share/openra/mods/cnc/packages before the C&C mod will work."
break;;
*) echo "Please enter y or n.";;
esac
done
}