add flatpak

This commit is contained in:
Denis-Cosmin Nutiu 2024-05-03 18:36:28 +03:00
parent c492ea59c4
commit 75c2f078a3
3 changed files with 14 additions and 3 deletions

View file

@ -2,5 +2,6 @@
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
<mapping directory="$PROJECT_DIR$/flatpak" vcs="Git" />
</component>
</project>

View file

@ -59,7 +59,7 @@ test {
}
jlink {
imageZip = project.file("${buildDir}/distributions/ImageTagger-${javafx.platform.classifier}-${version}.zip")
imageZip = project.file("${buildDir}/distributions/ImageTagger-${javafx.platform.classifier}.zip")
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
name = 'ImageTagger'

View file

@ -38,13 +38,23 @@ zip file which contains the deep learning models and place them into the
To build the project run:
```bash
gradle build
gradlew build
```
To run:
```bash
gradle run
gradlew run
```
### Building the FlatPak
To build the Flatpak run the following commands:
```shell
gradlew jlinkZip
cd flatpak
flatpak-builder --sandbox --user --install --force-clean build-dir dev.nuculabs.ImageTagger.yaml
```
# Blog