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:
Agel committed 2026-11-19 14:49:54 +01:00
1 parent 2636b7cf51
commit 832e24c6f7
7 files changed
+63 -7

No files matched your search

+4
View File
@@ -65,4 +65,8 @@ fi
ARCH="$APPIMAGE_ARCH" appimagetool "${APPIMAGETOOL_ARGS[@]}" \
"$APPDIR" "$OUTPUT_DIR/$OUTPUT_NAME"
chmod 0755 "$OUTPUT_DIR/$OUTPUT_NAME"
tar -czf "$OUTPUT_DIR/${OUTPUT_NAME}.tar.gz" -C "$OUTPUT_DIR" "$OUTPUT_NAME"
echo "==> AppImage ($ARCH) created: $OUTPUT_DIR/$OUTPUT_NAME ($(du -sh "$OUTPUT_DIR/$OUTPUT_NAME" | cut -f1))"
echo "==> Archive ($ARCH) created: $OUTPUT_DIR/${OUTPUT_NAME}.tar.gz ($(du -sh "$OUTPUT_DIR/${OUTPUT_NAME}.tar.gz" | cut -f1))"