Skip to content

Commit

Permalink
More work on updater, for #2
Browse files Browse the repository at this point in the history
  • Loading branch information
hadcl4 committed Mar 13, 2022
1 parent 6c3d833 commit 5ab516d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,9 @@ def thunderclient():
def setup_game():
command = f'gnome-terminal --window --command="/home/$USER/Thunder/thunder-cli --setup"'
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def thunder_update():
command = f'gnome-terminal --window --command="/bin/bash /home/$USER/Thunder/update"'
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
def thunder_docs():
command = f'gnome-terminal --window --command="/home/$USER/Thunder/thunder-cli --docs"'
process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
Expand Down
7 changes: 5 additions & 2 deletions update
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ echo "Thunder version:"
thunderversion=$(thunder-cli --version)
echo $thunderversion
# STABLE v1.0.0
if [[ $thunderversion == "STABLE v1.0.0" ]]; then
echo "No changes to apply yet."
if [[ $thunderversion == "Thunder is currently this version: STABLE Rev 1.0" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli # To update Thunder version
fi
echo "Closing in 5 seconds."
sleep 5s

0 comments on commit 5ab516d

Please sign in to comment.