id: dev.nuculabs.ImageTagger runtime: org.freedesktop.Platform runtime-version: '23.08' sdk: org.freedesktop.Sdk sdk-extensions: - org.freedesktop.Sdk.Extension.openjdk17 command: /app/bin/ImageTagger/bin/ImageTagger finish-args: # X11 + XShm access - --share=ipc - --socket=fallback-x11 # Wayland access - --socket=wayland # GPU acceleration if needed - --device=dri # Needs to save files locally - --filesystem=home modules: - name: ImageTagger buildsystem: simple build-options: env: PATH: /app/bin:/usr/bin:/usr/lib/sdk/openjdk17/bin JAVA_HOME: /usr/lib/sdk/openjdk17/jvm/openjdk-17 build-args: - --share=network build-commands: - cp prediction.onnx img-ai/src/main/resources/dev/nuculabs/imagetagger/ai/ - cp prediction_categories.txt img-ai/src/main/resources/dev/nuculabs/imagetagger/ai/ - gradle jpackageImage - mkdir -p /app/bin/ # Copy ImageTagger folder to /app/bin - ls img-ui/build/jpackage - cp -R img-ui/build/jpackage/ImageTagger /app/bin/ - ls /app/bin/ # Desktop Integration - 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/512x512/apps/${FLATPAK_ID}.png sources: - type: git url: https://github.com/dnutiu/ImageTagger - type: archive url: https://github.com/dnutiu/ImageTagger/releases/download/v1/AIModels.zip sha256: "bbe80bf135621897bc6186d8f17b889064717ed3b9951702b33be869e522321c" - type: file path: dev.nuculabs.ImageTagger.png - type: file path: dev.nuculabs.ImageTagger.desktop