Fix things
Themes gone, zenity now uses --no-cancel, added progress bars, fixed links, and made the WorldsOrganizer download more informing. Updated images and readme.
This commit is contained in:
parent
697bb42957
commit
aab28fb6cc
|
@ -13,8 +13,8 @@ $ ./worlds-installer.sh
|
||||||
|
|
||||||
All worlds content should be in a folder named "Worlds" in the same location your install script resides. A launch script named `launch.sh` should be in it's root. This is the script that you should run. Now you can make a desktop entry pointing to that script and enjoy Worlds.
|
All worlds content should be in a folder named "Worlds" in the same location your install script resides. A launch script named `launch.sh` should be in it's root. This is the script that you should run. Now you can make a desktop entry pointing to that script and enjoy Worlds.
|
||||||
|
|
||||||
![](https://github.com/Vencorr/Worlds-LinuxScript/blob/master/image.png)
|
![](https://github.com/Vencorr/Worlds-LinuxScript/blob/master/launcher.png)
|
||||||
|
|
||||||
![](https://i.imgur.com/1jjA7WM.png)
|
![](https://github.com/Vencorr/Worlds-LinuxScript/blob/master/app.png)
|
||||||
|
|
||||||
*WorldsPlayer is property of Worlds Inc. I do not own WorldsPlayer and these scripts in no way modify the client.*
|
*WorldsPlayer and it's logo is property of Worlds Inc. and all rights belong to them.*
|
||||||
|
|
17
launch.sh
17
launch.sh
|
@ -44,7 +44,8 @@ main() {
|
||||||
launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;;
|
launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;;
|
||||||
'Worlds Organizer')
|
'Worlds Organizer')
|
||||||
if [[ ! -f "$WORLDSDIR/WorldsOrganizer.jar" ]]; then
|
if [[ ! -f "$WORLDSDIR/WorldsOrganizer.jar" ]]; then
|
||||||
wget -O"$WORLDSDIR/WorldsOrganizer.jar" "https://wirlaburla.site/projects/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar"
|
zenity --info --text="The launcher will now download WorldsOrganizer using wget and run it." --width=280 --height=40 --title="$TITLE - WorldsOrganizer" --window-icon="$WORLDSDIR/icon.png"
|
||||||
|
wget -O"$WORLDSDIR/WorldsOrganizer.jar" "https://wirlaburla.com/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar" | zenity --progress --no-cancel --title="$TITLE - Downloading WorldsOrganizer" --width=300 --height=50 --auto-close --auto-kill
|
||||||
fi
|
fi
|
||||||
java -jar "$WORLDSDIR/WorldsOrganizer.jar"
|
java -jar "$WORLDSDIR/WorldsOrganizer.jar"
|
||||||
main ;;
|
main ;;
|
||||||
|
@ -60,19 +61,14 @@ main() {
|
||||||
killw
|
killw
|
||||||
main ;;
|
main ;;
|
||||||
'Update' )
|
'Update' )
|
||||||
update ;;
|
update | zenity --progress --no-cancel --title="$TITLE - Updating" --width=300 --height=50 --auto-close --auto-kill;;
|
||||||
'Open Github page' )
|
'Open Github page' )
|
||||||
xdg-open "https://github.com/Vencorr/Worlds-LinuxScript"
|
xdg-open "https://github.com/Vencorr/Worlds-LinuxScript"
|
||||||
main ;;
|
main ;;
|
||||||
esac
|
esac
|
||||||
if [ "$?" != 0 ]
|
|
||||||
then
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
launch () {
|
launch () {
|
||||||
source "$WORLDSDIR/wrldscmd"
|
|
||||||
WORLDSNEW="WorldsPlayer.exe"
|
WORLDSNEW="WorldsPlayer.exe"
|
||||||
WORLDSOLD="run.exe"
|
WORLDSOLD="run.exe"
|
||||||
WORLDSLEGACY="run.bat"
|
WORLDSLEGACY="run.bat"
|
||||||
|
@ -83,6 +79,10 @@ launch () {
|
||||||
else
|
else
|
||||||
$WINE cmd /c "$WORLDSINSTALL/$WORLDSLEGACY"
|
$WINE cmd /c "$WORLDSINSTALL/$WORLDSLEGACY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
launch
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
settings () {
|
settings () {
|
||||||
|
@ -135,7 +135,6 @@ settings () {
|
||||||
echo "export WINE=\"$WINE\"" >> "$WORLDSDIR/wrldslinux"
|
echo "export WINE=\"$WINE\"" >> "$WORLDSDIR/wrldslinux"
|
||||||
echo "export WINEPREFIX=\"$WINEPREFIX\"" >> "$WORLDSDIR/wrldslinux"
|
echo "export WINEPREFIX=\"$WINEPREFIX\"" >> "$WORLDSDIR/wrldslinux"
|
||||||
echo "export WORLDSINSTALL=\"$WORLDSINSTALL\"" >> "$WORLDSDIR/wrldslinux"
|
echo "export WORLDSINSTALL=\"$WORLDSINSTALL\"" >> "$WORLDSDIR/wrldslinux"
|
||||||
echo "export SETTHEME=\"$SETTHEME\"" >> "$WORLDSDIR/wrldslinux"
|
|
||||||
echo "source \"$WORLDSDIR/wrldscmd\"" >> "$WORLDSDIR/wrldslinux"
|
echo "source \"$WORLDSDIR/wrldscmd\"" >> "$WORLDSDIR/wrldslinux"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +194,7 @@ update () {
|
||||||
}
|
}
|
||||||
|
|
||||||
killw () {
|
killw () {
|
||||||
killall WorldsPlayer.exe run.exe javaw.exe jrew.exe run.bat | zenity --progress --no-buttons --title="$TITLE - Killing Processes" --width=300 --height=50 --auto-close --auto-kill
|
killall WorldsPlayer.exe run.exe javaw.exe jrew.exe run.bat | zenity --progress --no-cancel --title="$TITLE - Killing Processes" --width=300 --height=50 --auto-close --auto-kill
|
||||||
zenity --error --text="Killed all possible running processes of Worlds." --width=240 --height=40 --title="$TITLE - Kill" --window-icon="$WORLDSDIR/icon.png"
|
zenity --error --text="Killed all possible running processes of Worlds." --width=240 --height=40 --title="$TITLE - Kill" --window-icon="$WORLDSDIR/icon.png"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
launcher.png
Normal file
BIN
launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
Loading…
Reference in New Issue
Block a user