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

+3
View File
@@ -306,6 +306,9 @@ qt_add_qml_module(asteria-qt
packaging/icons/32x32/asteria-qt.png
packaging/icons/48x48/asteria-qt.png
packaging/icons/64x64/asteria-qt.png
packaging/icons/128x128/asteria-qt.png
packaging/icons/256x256/asteria-qt.png
packaging/icons/512x512/asteria-qt.png
RESOURCE_PREFIX /
)