add launcher fixed
This commit is contained in:
parent
932856401c
commit
3bc94234cf
1 changed files with 3 additions and 4 deletions
|
|
@ -129,10 +129,11 @@ add_launcher() {
|
|||
ICON_URL=https://lab.c95.org/fr4nz/helium-helper/raw/branch/main/assets/icon/helium.png
|
||||
AUTO_SCRIPT_URL=https://lab.c95.org/fr4nz/helium-helper/raw/branch/main/$AUTO_SCRIPT_FILE_NAME
|
||||
LOCAL_VERSION=$($INSTALL_PATH/$APP_NAME.AppImage --version | awk '{print $2}')
|
||||
mkdir -p $LAUNCHER_PATH $SCRIPT_PATH $BACKUP_PATH $CONFIG_PATH/icon
|
||||
if ! [ -f "$SCRIPT_PATH/$AUTO_SCRIPT_FILE_NAME" ] ; then
|
||||
wget -P $TMP $AUTO_SCRIPT_URL -q --show-progress
|
||||
chmod +x $TMP/$AUTO_SCRIPT_FILE_NAME
|
||||
|
||||
mv $TMP/$AUTO_SCRIPT_FILE_NAME $SCRIPT_PATH
|
||||
fi
|
||||
|
||||
wget -P $TMP $LAUNCHER_URL -q --show-progress
|
||||
|
|
@ -141,8 +142,6 @@ add_launcher() {
|
|||
sed -i "s|%ICON_LOCATION%|$CONFIG_PATH/icon/helium.png|" $TMP/helium.desktop.template
|
||||
sed -i "s|%APP_VERSION%|$LOCAL_VERSION|" $TMP/helium.desktop.template
|
||||
sed -i "s|%AUTO_UPDATE_SCRIPT%|$SCRIPT_PATH/$AUTO_SCRIPT_FILE_NAME|" $TMP/helium.desktop.template
|
||||
mkdir -p $LAUNCHER_PATH $SCRIPT_PATH $BACKUP_PATH $CONFIG_PATH/icon
|
||||
mv $TMP/$AUTO_SCRIPT_FILE_NAME $SCRIPT_PATH
|
||||
mv $TMP/helium.desktop.template $LAUNCHER_PATH/$APP_NAME.desktop
|
||||
mv $TMP/helium.png $CONFIG_PATH/icon
|
||||
echo -e "\n ${GRN}$APP_NAME_LONG launcher is set up!${CRS}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue