mirror of
https://git.h0ster.org/fr4nz/helium-helper.git
synced 2026-03-19 05:30:17 +01:00
Merge main
This commit is contained in:
commit
fe1dea14bd
10 changed files with 8309 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ APP_SOURCE="GitHub"
|
|||
SCRIPT_NAME="$APP_NAME Launcher Updater"
|
||||
PARENT_SCRIPT_FILE_NAME="helium_helper.sh"
|
||||
SCRIPT_FILE_NAME="helium_launcher_update.sh"
|
||||
SCRIPT_VERSION="0.5.9.1"
|
||||
SCRIPT_VERSION="0.5.9.2"
|
||||
LOG_DATE=$(date)
|
||||
DATE=$(date +"%d%m%y")
|
||||
|
||||
|
|
@ -32,8 +32,13 @@ ICON=$ASSET_PATH/icon/helium.png
|
|||
SCRIPT_PATH=$HOME/.local/bin
|
||||
|
||||
## REMOTE LOCATIONS
|
||||
<<<<<<< HEAD
|
||||
REMOTE_REPO_BRANCH="stable"
|
||||
REMOTE_REPO_URL=https://lab.c95.org/fr4nz/helium-helper/raw/branch/$REMOTE_REPO_BRANCH
|
||||
=======
|
||||
REMOTE_REPO_BRANCH="main"
|
||||
REMOTE_REPO_URL=https://git.h0ster.org/fr4nz/helium-helper/raw/branch/$REMOTE_REPO_BRANCH
|
||||
>>>>>>> main
|
||||
REMOTE_SCRIPT_URL=$REMOTE_REPO_URL/$SCRIPT_FILE_NAME
|
||||
APP_SOURCE_URL=https://api.github.com/repos/imputnet/helium-linux/releases/latest
|
||||
|
||||
|
|
@ -254,11 +259,13 @@ update_helium() {
|
|||
### COMPARE LOCAL & REMOTE VERSION
|
||||
LOCAL_VERSION_NUM=$(echo $LOCAL_VERSION | tr -d .)
|
||||
APP_SOURCE_VERSION_NUM=$(echo $APP_SOURCE_VERSION | tr -d .)
|
||||
APP_SOURCE_VERSION_NUM=$(echo "1.$APP_SOURCE_VERSION_NUM")
|
||||
LOCAL_VERSION_NUM=$(echo "1.$LOCAL_VERSION_NUM")
|
||||
|
||||
if [ "$APP_SOURCE_VERSION" == "$LOCAL_VERSION" ] ; then
|
||||
notify-send --icon="$ICON" "$NOTIFY_NAME" "Browser is up-to-date"
|
||||
|
||||
elif [ "$APP_SOURCE_VERSION_NUM" -gt "$LOCAL_VERSION_NUM" ] ; then
|
||||
elif [ $(echo "$APP_SOURCE_VERSION_NUM > $LOCAL_VERSION_NUM" | bc -l) -eq 1 ] ; then
|
||||
mkdir -p $TMP
|
||||
wget -P $TMP $DOWNLOAD_URL -q
|
||||
chmod +x $TMP/$APP_SOURCE_FILENAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue