mirror of
https://github.com/zen-browser/updates-server.git
synced 2025-07-08 09:20:04 +02:00
Merge pull request #20 from Espasant3/main
Solved a issue of instalation related to symlink and enhanced update experience with zsync
This commit is contained in:
commit
d56be04fd9
1 changed files with 7 additions and 3 deletions
10
appimage.sh
10
appimage.sh
|
@ -162,11 +162,11 @@ process_appimage() {
|
|||
"${appimage_path}" --appimage-extract
|
||||
|
||||
# Move .desktop file (from /squashfs-root only)
|
||||
desktop_file=$(find squashfs-root -maxdepth 1 -name "*.desktop" | head -n 1)
|
||||
desktop_file=$(find -L squashfs-root -maxdepth 1 -name "*.desktop" | head -n 1)
|
||||
mv "${desktop_file}" ~/.local/share/applications/${app_name}.desktop
|
||||
|
||||
# Find PNG icon (from /squashfs-root only)
|
||||
icon_file=$(find squashfs-root -maxdepth 1 -name "*.png" | head -n 1)
|
||||
icon_file=$(find -L squashfs-root -maxdepth 1 -name "*.png" | head -n 1)
|
||||
|
||||
# Resolve symlink if the icon is a symlink
|
||||
if [ -L "${icon_file}" ]; then
|
||||
|
@ -247,7 +247,11 @@ check_for_updates() {
|
|||
appimage_url="$ZEN_STABLE"
|
||||
fi
|
||||
|
||||
zsync_file="${HOME}/Downloads/$file_base.AppImage.zsync"
|
||||
# Get the download directory using xdg-user-dir, using Downloads as default value
|
||||
DOWNLOAD_DIR=$(xdg-user-dir DOWNLOAD || echo "${HOME}/Downloads")
|
||||
|
||||
# Set zsync file path
|
||||
zsync_file="${DOWNLOAD_DIR}/${file_base}.AppImage.zsync"
|
||||
|
||||
if check_installation_status "$file_base"; then
|
||||
log_info "Checking for updates..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue