Skip to content

Commit

Permalink
STABLE v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hadcl4 committed Jun 19, 2022
1 parent 51817ab commit 50d5724
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ View Thunder's version.
Add a game to Thunder's library (only affects gui).
### `--run`
Run a `.thunder` file. A `.thunder` file is basically an entry to the configuration file used in `thunder-cli --addgame`, however only one game can be stored in a `.thunder` file. The main difference is that, instead of a section being referred to by a number (like `[15]`), `.thunder` files begin with `[Game]`. Other than that, everything else is the same.
### '--web'
Run Thunder's web browser.
## Advanced Features
This section will go over more advanced features:

Expand Down
10 changes: 9 additions & 1 deletion thunder-cli
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ function --help {
echo "thunder-cli --dev | Enter devmode"
echo "thunder-cli --clear-cache | Clear web browser cache"
echo "thunder-cli --run | Run a .thunder file"
echo "thunder-cli --web | Open Thunder's web browser"
}

function --version {
echo "STABLE v1.1.2"
echo "STABLE v1.1.3"
}

function --gui {
Expand Down Expand Up @@ -211,6 +212,10 @@ function --run {
python3 ${HOME}/Thunder/read.py $2
}

function --web {
python3 ${HOME}/Thunder/thunderwebhelper 0
}

if [[ "$1" == "--help" ]] ;then
--help
fi
Expand Down Expand Up @@ -271,3 +276,6 @@ fi
if [[ "$1" == "--run" ]]; then
--run "$@"
fi
if [[ "$1" == "--web" ]]; then
--web
fi
4 changes: 4 additions & 0 deletions updater
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@ if [[ $thunderversion == "STABLE v1.1.1" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
if [[ $thunderversion == "STABLE v1.1.2" ]]; then
echo "Updating thunder-cli..."
sudo cp thunder-cli /usr/local/bin/thunder-cli
fi
echo "Closing in 10 seconds. Please reopen Thunder for changes to take effect."
sleep 10s

0 comments on commit 50d5724

Please sign in to comment.