fix(linux): preserve AppImage executable bit via .tar.gz and auto-integrate Ubuntu icons
Browsers strip POSIX executable permissions (+x) from raw .AppImage files downloaded directly over HTTP, leaving the downloaded binary non-executable in Ubuntu Files (Nautilus). Additionally, Ubuntu displays a generic cog icon for standalone AppImages in both Nautilus and the Ubuntu Dock on Wayland unless desktop metadata, high-DPI icons, and GVfs custom icon attributes are registered. - Wrap `Asteria-<arch>.AppImage` (`0755`) in a `.AppImage.tar.gz` archive in `package-linux.sh` and point CI wiki links to the archive so extracting the download preserves executable permissions out of the box. - Copy `.DirIcon` as a regular PNG file rather than a symlink so SquashFS icon extractors that do not follow symlinks receive valid image bytes. - Add non-blocking first-launch integration in `AppRun` to install `hicolor` icons and `asteria-qt.desktop` (`StartupWMClass=asteria-qt`) under `XDG_DATA_HOME` and apply `metadata::custom-icon` on `$APPIMAGE` via `gio` for Nautilus. - Embed 128x128, 256x256, and 512x512 icons in Qt resources and register them with `QApplication::setWindowIcon()`.
This commit is contained in:
7 files changed
+63
-7
No files matched your search
+5
-3
@@ -327,6 +327,7 @@ package-linux:
|
||||
name: "asteria-qt-linux-appimage-${CI_COMMIT_SHORT_SHA}"
|
||||
paths:
|
||||
- Asteria-x86_64.AppImage
|
||||
- Asteria-x86_64.AppImage.tar.gz
|
||||
expire_in: 1 day
|
||||
when: on_success
|
||||
rules:
|
||||
@@ -350,6 +351,7 @@ package-linux-arm64:
|
||||
name: "asteria-qt-linux-arm64-appimage-${CI_COMMIT_SHORT_SHA}"
|
||||
paths:
|
||||
- Asteria-arm64.AppImage
|
||||
- Asteria-arm64.AppImage.tar.gz
|
||||
expire_in: 1 day
|
||||
when: on_success
|
||||
rules:
|
||||
@@ -462,8 +464,8 @@ update-wiki:
|
||||
- API_URL="${CI_API_V4_URL:-https://gitlab.com/api/v4}/projects/${CI_PROJECT_ID}"
|
||||
- WIKI_URL="${API_URL}/wikis/home"
|
||||
- ARTIFACTS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/download"
|
||||
- LINUX_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw/Asteria-x86_64.AppImage?job=package-linux"
|
||||
- LINUX_ARM64_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw/Asteria-arm64.AppImage?job=package-linux-arm64"
|
||||
- LINUX_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw/Asteria-x86_64.AppImage.tar.gz?job=package-linux"
|
||||
- LINUX_ARM64_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw/Asteria-arm64.AppImage.tar.gz?job=package-linux-arm64"
|
||||
- WINDOWS_URL="${ARTIFACTS_URL}?job=package-windows"
|
||||
- WINDOWS_ARM64_URL="${ARTIFACTS_URL}?job=package-windows-arm64"
|
||||
- MACOS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw/Asteria.dmg?job=package-macos"
|
||||
@@ -472,7 +474,7 @@ update-wiki:
|
||||
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
|
||||
"${WIKI_URL}")
|
||||
|
||||
NEW_SECTION=$(printf '## Latest dev builds (v%s)\n\n> Updated automatically by pipeline [#%s](%s) from `%s` @ %s\n\n| Platform | Download |\n|----------|----------|\n| Linux (x86_64) | [AppImage](%s) |\n| Linux (ARM64) | [AppImage](%s) |\n| Windows (x86_64) | [Portable zip](%s) |\n| Windows (ARM64) | [Portable zip](%s) |\n| macOS | [DMG](%s) |' \
|
||||
NEW_SECTION=$(printf '## Latest dev builds (v%s)\n\n> Updated automatically by pipeline [#%s](%s) from `%s` @ %s\n\n| Platform | Download |\n|----------|----------|\n| Linux (x86_64) | [AppImage (.tar.gz)](%s) |\n| Linux (ARM64) | [AppImage (.tar.gz)](%s) |\n| Windows (x86_64) | [Portable zip](%s) |\n| Windows (ARM64) | [Portable zip](%s) |\n| macOS | [DMG](%s) |' \
|
||||
"${ASTERIA_VERSION}" "${CI_PIPELINE_ID}" "${CI_PIPELINE_URL}" "${CI_COMMIT_REF_NAME}" "${CI_COMMIT_SHORT_SHA}" \
|
||||
"${LINUX_URL}" "${LINUX_ARM64_URL}" "${WINDOWS_URL}" "${WINDOWS_ARM64_URL}" "${MACOS_URL}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user