Table of Contents
Functions in detail
No parameter
-
Run dependency check for every "special" command needed for the script
- TRUE | proceed
- FALSE | tell what's missing && exit
-
Run architecture detection
-
Check for Helium folder & executable
- TRUE | proceed
- FALSE | tell what's missing && ask to install Helium or exit
-
Update Helium
- See update process
-
Check for temporary directory, remove if present && exit
Install process -i
-
Check for Helium executable
- TRUE | try to update helium
- FALSE | ask for install confirmation && proceed or exit
-
Get latest download URL & file name with
curl -
Download given file to
tmpwithwget -
Make file executable
chmod -
Create app folder
-
Move file to app folder
-
Ask to add launcher
- TRUE | run add launcher function && proceed
- FALSE | proceed
-
Check for temporary directory, remove if present && exit
Update process -u
-
Check local and remote version tags
- TRUE | proceed
- FALSE | tell whats wrong && exit
-
Compare local and remote version tags
- EQUAL | tell okay && exit
- GT | show local and remote version && ask for confirmation && proceed or exit
- ELSE | show local and remote version && exit
-
Create
tmp&backuppath -
Download file to
tmpwithwget -
Make file executable
chmod -
Check for old backup and remove if existent
-
Move outdated file to
backup -
Move latest file to Helium folder
-
Create
backupof launcher -
Update Launcher (version number)
sed -
Check for temporary directory, remove if present && exit
Removal process -r
-
Check presence of Helium folder
- TRUE | ask for removal confirmation && proceed or exit
- FALSE | tell && exit
-
Remove Helium install folder
-
Remove launcher if present
-
Remove alias if present
-
Remove script if present
-
Remove Helium config folder