Skip to content

Instantly share code, notes, and snippets.

@jiriks74
Last active April 26, 2021 20:49
Show Gist options
  • Save jiriks74/7fc3e2b07c06ee6f2c596f01de43b32b to your computer and use it in GitHub Desktop.
Save jiriks74/7fc3e2b07c06ee6f2c596f01de43b32b to your computer and use it in GitHub Desktop.
Script to update nitrox mod in lutris
#!/bin/bash
if zenity --question --ellipsize --title="Update Nitrox" \
--text="Do you wish to update nitrox?\nThis may overwrite some seting in the Nitrox Launcher\n(such as Subnautica game folder)"
then
{
wget -O nitrox.zip https://nitrox.rux.gg/deeplink/download/latest
echo 50
unzip -o -q nitrox.zip -d "drive_c/Program Files/Nitrox/"
echo 100
} |\
zenity --progress \
--title="Updating..." \
--text="Updating Nitrox" \
--auto-kill \
--auto-close \
--percentage=0
zenity --info --title="Update complete" --text="Nitrox has been updated"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment