sv pl es en fr

Applications

Choose a category

Steam

Informations

This script is signed by PlayOnLinux.
	The famous gaming platform from Valve.	

Source code

#!/bin/bash

# Date : (2010-02-10 16:30)
# Last revision : (2011-09-17 14:00)
# Wine version used : 1.3.9, 1.3.11, 1.3.15, 1.3.18, 1.3.19, 1.3.23, 1.3.24, 1.2.3, 1.3.28
# Distribution used to test : Debian Testing
# Author : Tinou
# Licence : Retail
# Only For : http://www.playonlinux.com
# 
# Ce script est partculier, il permet d'installer Steam sur autant de préfixe qu'on
# souhaite.
#
# Il faut donc être vigilent, et mettre le moins de paquets possible, pour que
# l'utilisateur puisse les réinstaller à sa guise. Il est facile d'installer vcrun2005, 
# par contre il est difficile de le désinstaller.
#
# On installe donc seulement gecko qui est indispensable, et on évite le reste
#
##############################################################

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Steam"
# Comme on ne sait pas quel jeu la personne veut installer, je propose de mettre une version stable de wine
## Suite a gros gros souci reportés avec la branche stable de wine (fenêtre dupliquées a l'infini, crach après le login, ect...) la branche instable est préférable
WINEVERSION="1.3.28"
GAME_VMS="256"

# Select the good install file
if [ "$POL_LANG" == "fr" ]; then
STEAM_EXEC="SteamInstall_French.msi"
elif [ "$POL_LANG" == "de" ]; then
STEAM_EXEC="SteamInstall_German.msi"
elif [ "$POL_LANG" == "es" ]; then
STEAM_EXEC="SteamInstall_Spanish.msi"
else
STEAM_EXEC="SteamInstall.msi"
fi

#starting the script
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Valve" "http://www.valvesoftware.com/" "Tinou" "$PREFIX"

# Si le prefix existe, on propose d'en faire un autre
if [ -e "$POL_USER_ROOT/wineprefix/Steam" ]; then
        POL_SetupWindow_textbox "$(eval_gettext 'Please choose a virtual drive name')" "$TITLE"
        PREFIX="$APP_ANSWER"
else
        PREFIX="Steam"
fi

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86" # forcing x86 to avoid any possible x64 related bugs
POL_Wine_PrefixCreate "$WINEVERSION"

# Installing mandatory dependencies
POL_Call POL_Install_gecko
POL_Wine_InstallFonts
POL_Function_FontsSmoothRGB

#downloading latest Steam
cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/"
POL_SetupWindow_download "$(eval_gettext 'Downloading $TITLE')" "$TITLE" "http://cdn.steampowered.com/download/$STEAM_EXEC"

#Installing Steam
cd "$POL_USER_ROOT/wineprefix/$PREFIX/drive_c/"
POL_Wine msiexec /i "$STEAM_EXEC" /q
POL_Wine_WaitExit "$TITLE"

# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

## Fix for Steam
POL_Wine_OverrideDLL "" "gameoverlayrenderer"
## End Fix

# Making shortcut
POL_Shortcut "Steam.exe" "$TITLE"

POL_SetupWindow_message "$(eval_gettext 'If you want to install $TITLE in another virtual drive\nRun this installer again')" "$TITLE"

POL_SetupWindow_Close
exit 0

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAk50mVwACgkQ5TH6yaoTykf3UgCeIrUPNd6Vk3EUx4q9dlfImVyz
3W4AoJCFQZzFHiN15+aFheHHWx9hCLWL
=wnDx
-----END PGP SIGNATURE-----
	Date : 17 September 2011 14:58:04
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

Il n'y a rien à voir ici