update
parent
154a6dccdd
commit
d605991223
1 changed files with 16 additions and 18 deletions
|
|
@ -2,25 +2,25 @@
|
|||
## No parameter
|
||||
1. Run dependency check for every "special" command needed for the script
|
||||
|
||||
1\. **TRUE** | proceed
|
||||
2\. **FALSE** | tell what's missing && exit
|
||||
1. **TRUE** | proceed
|
||||
2. **FALSE** | tell what's missing && exit
|
||||
|
||||
2. Check for Helium folder & executable
|
||||
|
||||
1\. **TRUE** | proceed
|
||||
2\. **FALSE** | tell what's missing && ask to install Helium or exit
|
||||
1. **TRUE** | proceed
|
||||
2. **FALSE** | tell what's missing && ask to install Helium or exit
|
||||
|
||||
3. Update Helium
|
||||
|
||||
1\. See update process
|
||||
1. See update process
|
||||
|
||||
4. Check for temporary directory, remove if present && exit
|
||||
|
||||
## Install process -i
|
||||
1. Check for Helium executable
|
||||
|
||||
1\. **TRUE** | try to update helium
|
||||
2\. **FALSE** | ask for install confirmation && proceed or exit
|
||||
1. **TRUE** | try to update helium
|
||||
2. **FALSE** | ask for install confirmation && proceed or exit
|
||||
|
||||
2. Get latest download URL & file name with `curl`
|
||||
3. Download given file to `tmp` with `wget`
|
||||
|
|
@ -29,24 +29,22 @@
|
|||
6. Move file to app folder
|
||||
7. Ask to add launcher
|
||||
|
||||
1\. **TRUE** | run add launcher function && proceed
|
||||
2\. **FALSE** | proceed
|
||||
1. **TRUE** | run add launcher function && proceed
|
||||
2. **FALSE** | proceed
|
||||
|
||||
8. Check for temporary directory, remove if present && exit
|
||||
|
||||
## Update process -u
|
||||
1. Check local and remote version tags
|
||||
|
||||
1\. **TRUE** | proceed
|
||||
2\. **FALSE** | tell whats wrong && exit
|
||||
1. **TRUE** | proceed
|
||||
2. **FALSE** | tell whats wrong && exit
|
||||
|
||||
2. Compare local and remote version tags
|
||||
|
||||
1\. **EQUAL** | tell okay && exit
|
||||
|
||||
2\. **GT** | show local and remote version && ask for confirmation && proceed or exit
|
||||
|
||||
3\. **ELSE** | show local and remote version && exit
|
||||
1. **EQUAL** | tell okay && exit
|
||||
2. **GT** | show local and remote version && ask for confirmation && proceed or exit
|
||||
3. **ELSE** | show local and remote version && exit
|
||||
|
||||
3. Create `tmp` & `backup` path
|
||||
4. Download file to `tmp` with `wget`
|
||||
|
|
@ -61,8 +59,8 @@
|
|||
## Removal process -r
|
||||
1. Check presence of Helium folder
|
||||
|
||||
1\. **TRUE** | ask for removal confirmation && proceed or exit
|
||||
2\. **FALSE** | tell && exit
|
||||
1. **TRUE** | ask for removal confirmation && proceed or exit
|
||||
2. **FALSE** | tell && exit
|
||||
|
||||
2. Remove Helium install folder
|
||||
3. Remove launcher if present
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue