Launcher updater added

This commit is contained in:
Fr4nz D13trich 2025-12-23 00:54:23 +01:00
parent 46b534fa48
commit a36f13a742
2 changed files with 6 additions and 4 deletions

View file

@ -203,13 +203,12 @@ update_helium() {
mv $INSTALL_PATH/$APP_NAME.AppImage $BACKUP_PATH/$APP_NAME.old
mv $TMP/$GIT_FILENAME $INSTALL_PATH/$APP_NAME.AppImage
cp $LAUNCHER_PATH/$APP_NAME.desktop $BACKUP_PATH/$APP_NAME.desktop.old
################ HELP ################
sed -i "s|X-AppImage-Version=.|X-AppImage-Version=$LOCAL_VERSION|" $LAUNCHER_PATH/$APP_NAME.desktop
sed -i "s|X-AppImage-Version=.*|X-AppImage-Version=$($INSTALL_PATH/$APP_NAME.AppImage --version | awk '{print $2}')|" $LAUNCHER_PATH/$APP_NAME.desktop
echo -e "\n ${GRN}$APP_NAME_LONG is up-to-date !${CRS}\n"
break
elif [[ "$CONFIRM" == "n" || "$CONFIRM" == "N" ]] ; then
echo -e "\n ${RED}Update cancelled!${CRS}\n"
echo -e " ${RED}Update cancelled!${CRS}\n"
exit
else