Files
OpenRA/packaging/linux/deb/DEBIAN/postinst

38 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
set -e
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
# End automatically added section
start_directory=$( pwd )
cd /usr/share/openra
anw=`zenity --question --text "Download and install RA packages?"; echo $?`
if [ $anw = 0 ] ; then
mono OpenRA.Utility.exe --download-packages=ra
else
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."
break
fi
anw=`zenity --question --text "Download and install C&C packages?"; echo $?`
if [ $anw = 0 ] ; then
mono OpenRA.Utility.exe --download-packages=cnc
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 \
to /usr/share/openra/mods/cnc/packages before the C&C mod will work."
break
fi
gacutil -i thirdparty/Tao/Tao.Cg.dll
gacutil -i thirdparty/Tao/Tao.FreeType.dll
gacutil -i thirdparty/Tao/Tao.OpenAl.dll
gacutil -i thirdparty/Tao/Tao.OpenGl.dll
gacutil -i thirdparty/Tao/Tao.Sdl.dll
cd $start_directory