Topic: [Script] Install Perpetuum with Linux
(Sorry for my bad English, I'm French )
Hi everybody !
Today, we are happy, T0m-s and myself to propose to you a script for install Perpetuum easely with Linux !
First, you need PoL (Play On Linux)
Lien : http://www.playonlinux.com/fr/download.html
After, you need the script available at this address : http://t0m-s.be/bazare/perpetuum.pol
Cut/Paste the script in your favorite text editor and save it at Perpetuum.pol
When it's done, click on Outils (if you got the french version) / Tools and Executer un script local/Execute a local script and launch Perpetuum.pol and wait for the automatic installation
(You need Wine v.1.3.18)
=====
The script is open-source and free.
Here is the script :
#!/bin/bash
#Date : 2011/04/30
#Author : DaKanibal & T0m-S
#Version 0.1
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Perpetuum"
PREFIX="perpetuum"
WINEVERSION="1.3.18"
#Translations
#Traductions
if [ "$POL_LANG" == "fr" ]; then
LNG_EXE_DOWNLOAD="Telechargement de perpetuum_setup.exe ..."
LNG_GAME_INSTALL="Installation de perpetuum_setup.exe ..."
LNG_LAUNCHER="Création du lanceur"
LNG_DIRECTX_DOWNLOAD="Telechargement de DirectX"
LNG_DIRECTX_INSTALL="Installation de DirectX"
else
LNG_EXE_DOWNLOAD="Downloading perpetuum_setup.exe ..."
LNG_GAME_INSTALL="Installing Perpetuum_setup.exe ..."
LNG_LAUNCHER="Creating the launcher"
LNG_DIRECTX_DOWNLOAD="Downloading DirectX"
LNG_DIRECTX_INSTALL="Installing DirectX"
fi
#Start of the script
#Début du script
POL_SetupWindow_Init
#Install wizard
#Presentation assistant installation
POL_SetupWindow_presentation "$TITLE" "Perpetuum" "http://www.Perpetuum.com" "DaKanibal & T0m-S" "$PREFIX"
#Selection of "Perpetuum"
#Selection du Préfixe "Perpetuum"
select_prefix "$HOME/.PlayOnLinux/wineprefix/$PREFIX"
#Wine download
#Telechargement de Wine
POL_SetupWindow_install_wine "$WINEVERSION"
Use_WineVersion "$WINEVERSION"
#Perpetuum prefix creation
#Creation du Prefixe pour Perpetuum
POL_SetupWindow_prefixcreate
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
##Install
##Lancement de l'installation
#directx_feb2010_redist.exe download
#Telechargement de directx_feb2010_redist.exe
POL_SetupWindow_download "$LNG_DIRECTX_DOWNLOAD" "DirectX_setup" "http://download.microsoft.com/download/ … redist.exe"
POL_SetupWindow_wait_next_signal "$LNG_DIRECTX_INSTALL" "Perpetuum"
mkdir directx
cd directx
cabextract ../directx_feb2010_redist.exe
wine DXSETUP.exe
POL_SetupWindow_detect_exit
cd ..
rm -r directx/
#perpetuum_setup.exe download
#Telechargement de perpetuum_setup.exe
POL_SetupWindow_download "$LNG_EXE_DOWNLOAD" "Perpetuum_setup" "http://content.perpetuum-online.com/fil … _setup.exe"
#Perpetuum installation
#Installation de Perpetuum
POL_SetupWindow_wait_next_signal "$LNG_GAME_INSTALL" "Perpetuum"
wine perpetuum_setup.exe
POL_SetupWindow_detect_exit
rm perpetuum_setup.exe #Efface perpetuum_setup.exe #Remove perpetuum_setup.exe
#Laucher creation + icon
#Creation du lanceur + icone
POL_SetupWindow_wait_next_signal "$LNG_LAUNCHER" "Perpetuum"
echo "#!/bin/bash
export WINEPREFIX=~/.PlayOnLinux/wineprefix/perpetuum
cd ~/.PlayOnLinux/wineprefix/perpetuum/drive_c/Games/Perpetuum/
wine Perpetuum.exe $@" > ~/.PlayOnLinux/configurations/installed/Perpetuum
wget http://t0m-s.be/photos/Perpetuum
mv Perpetuum ~/.PlayOnLinux/icones/32/
POL_SetupWindow_detect_exit
POL_SetupWindow_Close
exit