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
@@ -114,7 +114,7 @@ cmake -S . -B build-linux-arm64 -G Ninja \
|
||||
-DQT_HOST_PATH=/opt/qt/6.12.0/gcc_64
|
||||
cmake --build build-linux-arm64 --target asteria-qt
|
||||
```
|
||||
AppImage Packaging (uses `scripts/bundle-linux-appdir.py` + `appimagetool` for both `x86_64` and `arm64`):
|
||||
AppImage Packaging (uses `scripts/bundle-linux-appdir.py` + `appimagetool` for both `x86_64` and `arm64`, outputting `Asteria-<arch>.AppImage` (`0755`) and a permission-preserving `Asteria-<arch>.AppImage.tar.gz` archive; `AppRun` auto-integrates `~/.local/share/applications/asteria-qt.desktop`, `hicolor` icons, and Nautilus `metadata::custom-icon` on first launch):
|
||||
```bash
|
||||
packaging/package-linux.sh build-linux /opt/qt/6.12.0/gcc_64 dist x86_64
|
||||
packaging/package-linux.sh build-linux-arm64 /opt/qt/6.12.0/gcc_arm64 dist arm64
|
||||
|
||||
Reference in new issue
Block a user