add flatpak
This commit is contained in:
parent
c492ea59c4
commit
75c2f078a3
3 changed files with 14 additions and 3 deletions
|
@ -2,5 +2,6 @@
|
|||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/flatpak" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -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'
|
||||
|
|
14
readme.md
14
readme.md
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue