Scripts

Script for CivNet

#!/bin/bash
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi
source "$PLAYONLINUX/lib/sources"

cfg_check

#Presentation
presentation "Civnet" "Microprose" "" "BBK" "Civnet"

if [ "$POL_LANG" == "fr_FR.UTF-8" ]; then
LNG_ZIP_DL="Téléchargement du jeu..."
LNG_INSTALL_WARNING="Il est préférable de cliquer sur 'Skip' lors de la création d'icônes"
else
LNG_ZIP_DL="Downloading the game..."
LNG_INSTALL_WARNING="It is advised to choose 'Skip' during the icons creation"
fi

mkdir -p $REPERTOIRE/wineprefix/Civnet
cd $REPERTOIRE/wineprefix/Civnet
select_prefixe "$(pwd)"
creer_prefixe

cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:

cd $WINEPREFIX/drive_c/

telecharger "$LNG_ZIP_DL" "http://www.abandonware-utopia.com/pages/telechargement/jeux/Civnet.zip"
unzip Civnet.zip
rm Civnet.zip

cd CivNet

message "$LNG_INSTALL_WARNING"

wine INSTALL.EXE

export $CDROM="none"

creer_lanceur "Civnet" "CivNet/" "CIVNET.EXE" "" "CivNet"