Updated linux post-install scripts to use OpenRA.Utility.exe
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
Package: openra
|
Package: openra
|
||||||
Version: 20100914
|
Version: 20100914
|
||||||
Architecture: i386
|
Architecture: all
|
||||||
Maintainer: Matthew Bowra-Dean <matthew@ijw.co.nz>
|
Maintainer: Matthew Bowra-Dean <matthew@ijw.co.nz>
|
||||||
Uploaders: Maikel van den Hout <ma1kelvdh@gmail.com>
|
Uploaders: Maikel van den Hout <ma1kelvdh@gmail.com>
|
||||||
Installed-Size: 8306
|
Installed-Size: 8306
|
||||||
@@ -10,6 +10,5 @@ Priority: extra
|
|||||||
Homepage: http://www.open-ra.org/
|
Homepage: http://www.open-ra.org/
|
||||||
Description: A multiplayer reimplementation of the Command & Conquer: Red Alert game engine in .NET/Mono, OpenGL, OpenAL and SDL. Has extensive modding support and includes Command & Conquer as an official mod.
|
Description: A multiplayer reimplementation of the Command & Conquer: Red Alert game engine in .NET/Mono, OpenGL, OpenAL and SDL. Has extensive modding support and includes Command & Conquer as an official mod.
|
||||||
.
|
.
|
||||||
Please note: OpenRA is currently at an alpha release stage. Expect releases to be buggy
|
Please note: OpenRA is currently at an alpha release stage. If you have any problems, please report them to the IRC channel (#openra on
|
||||||
or unstable. If you have any problems, please report them to the IRC channel (#openra on
|
|
||||||
irc.freenode.net) or the bug-tracker (http://red-bull.ijw.co.nz:3690/OpenRA).
|
irc.freenode.net) or the bug-tracker (http://red-bull.ijw.co.nz:3690/OpenRA).
|
||||||
|
|||||||
@@ -7,16 +7,11 @@ fi
|
|||||||
# End automatically added section
|
# End automatically added section
|
||||||
|
|
||||||
start_directory=$( pwd )
|
start_directory=$( pwd )
|
||||||
cd /tmp
|
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
|
||||||
cd /tmp/
|
mono OpenRA.Utility.exe --download-packages=ra
|
||||||
wget "http://open-ra.org/get-dependency.php?file=ra-packages" -O ra-packages.zip
|
|
||||||
mkdir -p /usr/share/openra/mods/ra/packages
|
|
||||||
unzip -f ra-packages.zip -d /usr/share/openra/mods/ra/packages
|
|
||||||
rm ra-packages.zip
|
|
||||||
cd $start_directory
|
|
||||||
else
|
else
|
||||||
zenity --info --text "The RA packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=ra-packages \
|
zenity --info --text "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."
|
to /usr/share/openra/mods/ra/packages before the RA mod will work."
|
||||||
@@ -26,20 +21,17 @@ 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
|
||||||
cd /tmp/
|
mono OpenRA.Utility.exe --download-packages=cnc
|
||||||
wget "http://open-ra.org/get-dependency.php?file=cnc-packages" -O cnc-packages.zip
|
|
||||||
mkdir -p /usr/share/openra/mods/cnc/packages
|
|
||||||
unzip -f cnc-packages.zip -d usr/share/openra/mods/cnc/packages
|
|
||||||
rm cnc-packages.zip
|
|
||||||
cd $start_directory
|
|
||||||
else
|
else
|
||||||
zenity --info --text "The C&C packages will need to be manually extracted from http://open-ra.org/get-dependency.php?file=cnc-packages \
|
zenity --info --text "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."
|
to /usr/share/openra/mods/cnc/packages before the C&C mod will work."
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Cg.dll
|
gacutil -i thirdparty/Tao/Tao.Cg.dll
|
||||||
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.FreeType.dll
|
gacutil -i thirdparty/Tao/Tao.FreeType.dll
|
||||||
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenAl.dll
|
gacutil -i thirdparty/Tao/Tao.OpenAl.dll
|
||||||
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.OpenGl.dll
|
gacutil -i thirdparty/Tao/Tao.OpenGl.dll
|
||||||
gacutil -i /usr/share/openra/thirdparty/Tao/Tao.Sdl.dll
|
gacutil -i thirdparty/Tao/Tao.Sdl.dll
|
||||||
|
|
||||||
|
cd $start_directory
|
||||||
|
|||||||
@@ -1,28 +1,12 @@
|
|||||||
|
|
||||||
install_ra_packages() {
|
|
||||||
wget "http://open-ra.org/get-dependency.php?file=ra-packages"
|
|
||||||
mkdir -p $pkgdir/usr/share/openra/mods/ra/packages
|
|
||||||
unzip ra-packages.zip -d $pkgdir/usr/share/openra/mods/ra/packages
|
|
||||||
rm ra-packages.zip
|
|
||||||
}
|
|
||||||
|
|
||||||
install_cnc_packages() {
|
|
||||||
wget "http://open-ra.org/get-dependency.php?file=cnc-packages"
|
|
||||||
mkdir -p $pkgdir/usr/share/openra/mods/cnc/packages
|
|
||||||
unzip cnc-packages.zip -d $pkgdir/usr/share/openra/mods/cnc/packages
|
|
||||||
rm cnc-packages.zip
|
|
||||||
}
|
|
||||||
|
|
||||||
# arg 1: the new package version
|
# arg 1: the new package version
|
||||||
post_install() {
|
post_install() {
|
||||||
|
cd $pkgdir/usr/share/openra
|
||||||
while true
|
while true
|
||||||
do
|
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|"")
|
||||||
pushd /tmp/
|
mono OpenRA.Utility.exe --download-packages=ra
|
||||||
install_ra_packages
|
|
||||||
popd
|
|
||||||
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 \
|
||||||
@@ -37,9 +21,7 @@ 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|"")
|
||||||
pushd /tmp/
|
mono OpenRA.Utility.exe --download-packages=cnc
|
||||||
install_cnc_packages
|
|
||||||
popd
|
|
||||||
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 \
|
||||||
@@ -49,9 +31,9 @@ post_install() {
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
gacutil -i $pkgdir/usr/share/openra/thirdparty/Tao/Tao.Cg.dll
|
gacutil -i thirdparty/Tao/Tao.Cg.dll
|
||||||
gacutil -i $pkgdir/usr/share/openra/thirdparty/Tao/Tao.FreeType.dll
|
gacutil -i thirdparty/Tao/Tao.FreeType.dll
|
||||||
gacutil -i $pkgdir/usr/share/openra/thirdparty/Tao/Tao.OpenAl.dll
|
gacutil -i thirdparty/Tao/Tao.OpenAl.dll
|
||||||
gacutil -i $pkgdir/usr/share/openra/thirdparty/Tao/Tao.OpenGl.dll
|
gacutil -i thirdparty/Tao/Tao.OpenGl.dll
|
||||||
gacutil -i $pkgdir/usr/share/openra/thirdparty/Tao/Tao.Sdl.dll
|
gacutil -i thirdparty/Tao/Tao.Sdl.dll
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,18 +28,13 @@ cp -r ~/openra-package/built/ $RPM_BUILD_ROOT
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%post
|
%post
|
||||||
cd /tmp
|
cd $RPM_BUILD_ROOT/usr/share/openra
|
||||||
while true
|
while true
|
||||||
do
|
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|"")
|
||||||
pushd /tmp/
|
mono OpenRA.Utility.exe --download-packages=ra
|
||||||
wget "http://open-ra.org/get-dependency.php?file=ra-packages" -O ra-packages.zip
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/openra/mods/ra/packages
|
|
||||||
unzip ra-packages.zip -d $RPM_BUILD_ROOT/usr/share/openra/mods/ra/packages
|
|
||||||
rm ra-packages.zip
|
|
||||||
popd
|
|
||||||
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 \
|
||||||
@@ -54,12 +49,7 @@ 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|"")
|
||||||
pushd /tmp/
|
mono OpenRA.Utility.exe --download-packages=cnc
|
||||||
wget "http://open-ra.org/get-dependency.php?file=cnc-packages" -O cnc-packages.zip
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/openra/mods/cnc/packages
|
|
||||||
unzip cnc-packages.zip -d $RPM_BUILD_ROOT/usr/share/openra/mods/cnc/packages
|
|
||||||
rm cnc-packages.zip
|
|
||||||
popd
|
|
||||||
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 \
|
||||||
@@ -69,11 +59,11 @@ do
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
gacutil -i $RPM_BUILD_ROOT/usr/share/openra/thirdparty/Tao/Tao.Cg.dll
|
gacutil -i thirdparty/Tao/Tao.Cg.dll
|
||||||
gacutil -i $RPM_BUILD_ROOT/usr/share/openra/thirdparty/Tao/Tao.FreeType.dll
|
gacutil -i thirdparty/Tao/Tao.FreeType.dll
|
||||||
gacutil -i $RPM_BUILD_ROOT/usr/share/openra/thirdparty/Tao/Tao.OpenAl.dll
|
gacutil -i thirdparty/Tao/Tao.OpenAl.dll
|
||||||
gacutil -i $RPM_BUILD_ROOT/usr/share/openra/thirdparty/Tao/Tao.OpenGl.dll
|
gacutil -i thirdparty/Tao/Tao.OpenGl.dll
|
||||||
gacutil -i $RPM_BUILD_ROOT/usr/share/openra/thirdparty/Tao/Tao.Sdl.dll
|
gacutil -i thirdparty/Tao/Tao.Sdl.dll
|
||||||
|
|
||||||
%files
|
%files
|
||||||
/usr/bin/openra
|
/usr/bin/openra
|
||||||
|
|||||||
Reference in New Issue
Block a user