Update Installer
This commit is contained in:
parent
0ef0ac5975
commit
87da64f126
|
@ -12,10 +12,16 @@ export WINE=$(which wine)
|
||||||
export WINETRICKSINSTALL="win7 corefonts droid ddr=gdi devenum wmp9 dmsynth wmv9vcm directplay quartz ie8"
|
export WINETRICKSINSTALL="win7 corefonts droid ddr=gdi devenum wmp9 dmsynth wmv9vcm directplay quartz ie8"
|
||||||
|
|
||||||
start () {
|
start () {
|
||||||
|
errorcheck
|
||||||
zenity --info --title="$WTITLE Installer" --text 'Welcome to the Worlds Linux setup installer maintained by Wirlaburla. This will setup and install Worlds for use on Linux systems through WINE.' --width=320 --ok-label="Next"
|
zenity --info --title="$WTITLE Installer" --text 'Welcome to the Worlds Linux setup installer maintained by Wirlaburla. This will setup and install Worlds for use on Linux systems through WINE.' --width=320 --ok-label="Next"
|
||||||
settings
|
settings
|
||||||
}
|
}
|
||||||
|
|
||||||
|
errorcheck () {
|
||||||
|
winetricks --help >> /dev/null || { zenity --error --title="$WTITLE Installer - Error" --text "Winetricks wasn't found! Please install it before continuing" --width=320 ; exit 1; }
|
||||||
|
wget --help >> /dev/null || { zenity --error --title="$WTITLE Installer - Error" --text "Wget wasn't found! Please install it before continuing" --width=320 ; exit 1; }
|
||||||
|
}
|
||||||
|
|
||||||
settings () {
|
settings () {
|
||||||
SelOptions=$(zenity --list --title="$WTITLE - Settings" --text="Installer Options for $WTITLE" --column='Option' --column='Value' --ok-label='Edit' --cancel-label='Exit' --extra-button='Next' --width=400 --height=260 \
|
SelOptions=$(zenity --list --title="$WTITLE - Settings" --text="Installer Options for $WTITLE" --column='Option' --column='Value' --ok-label='Edit' --cancel-label='Exit' --extra-button='Next' --width=400 --height=260 \
|
||||||
"Install Location" "$WORLDSDIR" \
|
"Install Location" "$WORLDSDIR" \
|
||||||
|
@ -104,7 +110,7 @@ work () {
|
||||||
|
|
||||||
download1922 () {
|
download1922 () {
|
||||||
export WORLDSINSTALL="$WINEPREFIX/drive_c/Program Files/Worlds Inc/WorldsPlayer - Win7"
|
export WORLDSINSTALL="$WINEPREFIX/drive_c/Program Files/Worlds Inc/WorldsPlayer - Win7"
|
||||||
wget -O$INSTALLER "http://cache.worlds.com/test/WorldsPlayerWin7-1922a10.exe" 2>&1 | sed -u 's/.* \([0-9]\+%\)\ \+\([0-9.]\+.\) \(.*\)/\1\n# Downloading at \2\/s, ETA \3/' | zenity --progress --title="$WTITLE - Worlds $WORLDSVER" --text="Starting Download.." --width=300 --height=50 --auto-close --auto-kill
|
wget -O$INSTALLER "http://cache.worlds.com/test/WorldsPlayerWin7-1922a09.exe" 2>&1 | sed -u 's/.* \([0-9]\+%\)\ \+\([0-9.]\+.\) \(.*\)/\1\n# Downloading at \2\/s, ETA \3/' | zenity --progress --title="$WTITLE - Worlds $WORLDSVER" --text="Starting Download.." --width=300 --height=50 --auto-close --auto-kill
|
||||||
}
|
}
|
||||||
|
|
||||||
download1920 () {
|
download1920 () {
|
||||||
|
@ -145,13 +151,15 @@ worlds () {
|
||||||
}
|
}
|
||||||
|
|
||||||
launchscript () {
|
launchscript () {
|
||||||
wget -O"$WORLDSDIR/launch.sh" "https://raw.githubusercontent.com/Vencorr/Worlds-LinuxScript/master/launch.sh"
|
wget -O"$WORLDSDIR/launch.sh" "https://github.com/Vencorr/Worlds-LinuxScript/blob/master/launch.sh"
|
||||||
chmod +x "$WORLDSDIR/launch.sh"
|
|
||||||
wget -O"$WORLDSDIR/icon.png" "https://raw.githubusercontent.com/Vencorr/Worlds-LinuxScript/master/icon.png"
|
wget -O"$WORLDSDIR/icon.png" "https://raw.githubusercontent.com/Vencorr/Worlds-LinuxScript/master/icon.png"
|
||||||
rm "$WORLDSDIR/wine.worlds" "$WORLDSDIR/wineprefix.worlds" "$WORLDSDIR/worlds.worlds"
|
rm "$WORLDSDIR/wrldslinux"
|
||||||
echo "$WINE" > "$WORLDSDIR/wine.worldslinux"
|
echo "# Configuration for Worlds on Linux." > "$WORLDSDIR/wrldslinux"
|
||||||
echo "$WINEPREFIX" > "$WORLDSDIR/wineprefix.worldslinux"
|
echo "export WINE=$WINE" >> "$WORLDSDIR/wrldslinux"
|
||||||
echo "$WORLDSINSTALL" > "$WORLDSDIR/worlds.worldslinux"
|
echo "export WINEPREFIX=$WINEPREFIX" >> "$WORLDSDIR/wrldslinux"
|
||||||
|
echo "export WORLDSDIR=$WORLDSDIR" >> "$WORLDSDIR/wrldslinux"
|
||||||
|
echo "export SETTHEME=DEFAULT" >> "$WORLDSDIR/wrldslinux"
|
||||||
|
echo "source \"$WORLDSDIR/wlrdscmd\"" >> "$WORLDSDIR/wrldslinux"
|
||||||
rm "$HOME/Desktop/WorldsPlayer Win7.*"
|
rm "$HOME/Desktop/WorldsPlayer Win7.*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user