Linux post install scripts brought up to date with Utility app syntax changes.
This commit is contained in:
@@ -11,7 +11,8 @@ cd /usr/share/openra
|
|||||||
|
|
||||||
anw=`zenity --question --text "Download and install RA packages?"; echo $?`
|
anw=`zenity --question --text "Download and install RA packages?"; echo $?`
|
||||||
if [ $anw = 0 ] ; then
|
if [ $anw = 0 ] ; then
|
||||||
mono OpenRA.Utility.exe --download-packages=ra
|
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/
|
||||||
else
|
else
|
||||||
zenity --info --text "The Red Alert packages need to be manually installed before it will work.\nSee the OpenRA website for more information."
|
zenity --info --text "The Red Alert packages need to be manually installed before it will work.\nSee the OpenRA website for more information."
|
||||||
break
|
break
|
||||||
@@ -20,7 +21,8 @@ fi
|
|||||||
|
|
||||||
anw=`zenity --question --text "Download and install C&C packages?"; echo $?`
|
anw=`zenity --question --text "Download and install C&C packages?"; echo $?`
|
||||||
if [ $anw = 0 ] ; then
|
if [ $anw = 0 ] ; then
|
||||||
mono OpenRA.Utility.exe --download-packages=cnc
|
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/
|
||||||
else
|
else
|
||||||
zenity --info --text "The C&C packages need to be manually installed before it will work.\nSee the OpenRA website for more information."
|
zenity --info --text "The C&C packages need to be manually installed before it will work.\nSee the OpenRA website for more information."
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -6,7 +6,8 @@ post_install() {
|
|||||||
read -s -n1 -p "Download and install RA packages? [Y/n]"
|
read -s -n1 -p "Download and install RA packages? [Y/n]"
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
y|Y|"")
|
y|Y|"")
|
||||||
mono OpenRA.Utility.exe --download-packages=ra
|
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;;
|
break;;
|
||||||
n|N)
|
n|N)
|
||||||
echo "The RA packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=ra-packages \
|
echo "The RA packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=ra-packages \
|
||||||
@@ -21,7 +22,8 @@ post_install() {
|
|||||||
read -s -n1 -p "Download and install C&C packages? [Y/n]"
|
read -s -n1 -p "Download and install C&C packages? [Y/n]"
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
y|Y|"")
|
y|Y|"")
|
||||||
mono OpenRA.Utility.exe --download-packages=cnc
|
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;;
|
break;;
|
||||||
n|N)
|
n|N)
|
||||||
echo "The C&C packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=cnc-packages \
|
echo "The C&C packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=cnc-packages \
|
||||||
|
|||||||
@@ -35,7 +35,8 @@ do
|
|||||||
read -s -n1 -p "Download and install RA packages? [Y/n]"
|
read -s -n1 -p "Download and install RA packages? [Y/n]"
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
y|Y|"")
|
y|Y|"")
|
||||||
mono OpenRA.Utility.exe --download-packages=ra
|
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;;
|
break;;
|
||||||
n|N)
|
n|N)
|
||||||
echo "The RA packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=ra-packages \
|
echo "The RA packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=ra-packages \
|
||||||
@@ -50,7 +51,8 @@ do
|
|||||||
read -s -n1 -p "Download and install C&C packages? [Y/n]"
|
read -s -n1 -p "Download and install C&C packages? [Y/n]"
|
||||||
case $REPLY in
|
case $REPLY in
|
||||||
y|Y|"")
|
y|Y|"")
|
||||||
mono OpenRA.Utility.exe --download-packages=cnc
|
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;;
|
break;;
|
||||||
n|N)
|
n|N)
|
||||||
echo "The C&C packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=cnc-packages \
|
echo "The C&C packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=cnc-packages \
|
||||||
|
|||||||
Reference in New Issue
Block a user