Fix Flatpak build

This commit is contained in:
Denis-Cosmin Nutiu 2024-05-11 15:40:58 +03:00
parent 65a433ab61
commit 52aee3a8ca
3 changed files with 21 additions and 2 deletions

View file

@ -24,9 +24,11 @@ modules:
- cp -R legal /app/bin/image/
- cp -R release /app/bin/image/
# Desktop Integration
- chmod +x /app/bin/image/lib/jexec
- chmod +x /app/bin/image/lib/jspawnhelper
- mkdir -p bin /app/share/{applications,icons/hicolor/512x512/apps,metainfo}
- mv ${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop
- mv ${FLATPAK_ID}.png /app/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
- mv ${FLATPAK_ID}.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
sources:
- type: archive
path: ../img-ui/build/distributions/ImageTagger-linux.zip

View file

@ -1,3 +1,18 @@
# Flatpak
This directory contains the flatpak build files.
This directory contains the flatpak build files.
If you are on Linux and would like to install this application as a Flatpak image then
build the application with gradle:
```
# in parrent folder:
./gradlew jlinkZip
```
And execute:
```shell
cd flatpak
./debug.sh
```

View file

@ -17,6 +17,8 @@ It allows photographers to automate the image tagging process. 📸
Photo credit: [https://unsplash.com/@ndcphoto](https://unsplash.com/@ndcphoto)
Alternatively see [Flatpak](./flatpak/readme.md) installation instructions.
## Development
If you want to build the application yourself, you will need Java 17 JDK and the