diff --git a/flatpak/.gitignore b/flatpak/.gitignore new file mode 100644 index 0000000..2245808 --- /dev/null +++ b/flatpak/.gitignore @@ -0,0 +1,3 @@ +build-dir +.idea +.flatpak-builder \ No newline at end of file diff --git a/flatpak/debug.sh b/flatpak/debug.sh new file mode 100755 index 0000000..cb60baa --- /dev/null +++ b/flatpak/debug.sh @@ -0,0 +1,3 @@ +# Script to debug the Flatpak application. +flatpak-builder --sandbox --user --install --force-clean build-dir dev.nuculabs.ImageTagger.yaml +flatpak run dev.nuculabs.ImageTagger \ No newline at end of file diff --git a/flatpak/dev.nuculabs.ImageTagger.desktop b/flatpak/dev.nuculabs.ImageTagger.desktop new file mode 100644 index 0000000..ada3b99 --- /dev/null +++ b/flatpak/dev.nuculabs.ImageTagger.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=ImageTagger +Exec=/app/bin/image/bin/ImageTagger +Terminal=false +Type=Application +Icon=dev.nuculabs.ImageTagger +StartupWMClass=ImageTagger +Comment=Image Tagger +Categories=Utility; \ No newline at end of file diff --git a/flatpak/dev.nuculabs.ImageTagger.png b/flatpak/dev.nuculabs.ImageTagger.png new file mode 100644 index 0000000..6a56b4d Binary files /dev/null and b/flatpak/dev.nuculabs.ImageTagger.png differ diff --git a/flatpak/dev.nuculabs.ImageTagger.yaml b/flatpak/dev.nuculabs.ImageTagger.yaml new file mode 100644 index 0000000..1222c0f --- /dev/null +++ b/flatpak/dev.nuculabs.ImageTagger.yaml @@ -0,0 +1,37 @@ +id: dev.nuculabs.ImageTagger +runtime: org.freedesktop.Platform +runtime-version: '23.08' +sdk: org.freedesktop.Sdk +command: /app/bin/image/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=xdg-pictures +modules: + - name: ImageTagger + buildsystem: simple + build-commands: + - mkdir -p /app/bin/image/ + - cp -R bin /app/bin/image/ + - cp -R lib /app/bin/image/ + - cp -R conf /app/bin/image/ + - cp -R legal /app/bin/image/ + - cp -R release /app/bin/image/ + - chmod +x -R /app/bin/image/lib/ # make libs executable so xdg-open will work + # Desktop Integration + - mkdir -p bin /app/share/{applications,icons/hicolor/64x64/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 + sources: + - type: archive + path: ../img-ui/build/distributions/ImageTagger-linux.zip + - type: file + path: dev.nuculabs.ImageTagger.png + - type: file + path: dev.nuculabs.ImageTagger.desktop \ No newline at end of file diff --git a/flatpak/readme.md b/flatpak/readme.md new file mode 100644 index 0000000..7bb9ea2 --- /dev/null +++ b/flatpak/readme.md @@ -0,0 +1,9 @@ +# Image Tagger Flatpak + +Image Tagger is a simple software application for predicting an image's keywords using a deep learning model based on resnet. + +It allows photographers to automate the image tagging process. 📸 + +--- + +This repo contains the flatpak build files. \ No newline at end of file