Fix Worlds Organizer launch

Should now download then run it if it isn't found.
This commit is contained in:
Nicholas George 2020-09-09 15:10:50 -05:00
parent b50281452a
commit 3b1bb41013

View File

@ -40,10 +40,10 @@ main() {
'Launch Worlds with Logger') 'Launch Worlds with Logger')
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')
java -jar "$WORLDSDIR/WorldsOrganizer.jar" if [[ ! -f "$WORLDSDIR/WorldsOrganizer.jar" ]]; then
if [[ $? -eq 1 ]]; then wget -O"$WORLDSDIR/WorldsOrganizer.jar" "https://wirlaburla.site/projects/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar"
wget -O"$WORLDSDIR/WorldsOrganizer" "https://wirlaburla.site/projects/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar"
fi fi
java -jar "$WORLDSDIR/WorldsOrganizer.jar"
main ;; main ;;
'Open Worlds folder') 'Open Worlds folder')
gio open "$WORLDSINSTALL" ;; gio open "$WORLDSINSTALL" ;;