From 7bf4a9dcedbcc6dfc8bc2ff88d7fe1b45e975d9e Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Fri, 3 May 2024 18:39:30 +0300 Subject: [PATCH] add flatpak dir --- flatpak/.gitignore | 3 ++ flatpak/debug.sh | 3 ++ flatpak/dev.nuculabs.ImageTagger.desktop | 9 ++++++ flatpak/dev.nuculabs.ImageTagger.png | Bin 0 -> 4725 bytes flatpak/dev.nuculabs.ImageTagger.yaml | 37 +++++++++++++++++++++++ flatpak/readme.md | 9 ++++++ 6 files changed, 61 insertions(+) create mode 100644 flatpak/.gitignore create mode 100755 flatpak/debug.sh create mode 100644 flatpak/dev.nuculabs.ImageTagger.desktop create mode 100644 flatpak/dev.nuculabs.ImageTagger.png create mode 100644 flatpak/dev.nuculabs.ImageTagger.yaml create mode 100644 flatpak/readme.md 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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+9YcS1N2XX3SBHzJ5y3!}XQr%eN?J&!#IK+ILa}0cFF?K*e^{ zZnIMhM+H#Se$I+Iz@^4bWi%*%q`V@jRR@96s!w@^q!1ti@S}Ruq#w|G+KWE?XSg>O ztHRhhseHC6i;f|W@xiQxG-}ke@^43$*|aH+_hwEaFZTw^-t;Fr{PuwS&9R&GoscM- zEs6+iq>>BI6?Flm0(*fU?tE}R&b9<#gCG$7#gsb2u-^7TYx$0BCV!SeMvj@Vu*d1s zXCUp`b;9320G&=xMn*cx$%*XSw~Osxujj(W1ll$+uxOGmEgF=qMDO|GCQrPPD9bkG zSF21oH7B7$=kEvfg1{C+k=^0&Z}DA1{efl>Y3 z7}(AAt_x9r#)BZ?ex7b>fzN@V9h*7Iv9J1y?V8+P{Us!sIF(RLTDFy(d>cl06#+&y zA;FG#xco5|E3hFxm(RCkEB_hpEp%&Jw&Z=kNw~kqyLLP)iOi8@-1>*PC?oo~3t?>x zrH3Ttp`cjit9`jF+?XZ*oKP$Z0%na$P<{RJLt;d`2TQ_(AOP&YI+-Ae!b>(;adyy& zwr*_=Qjo6(KTkDoP7=8VHc~PyocOIs{^@)%W{V=KL@ruorUBomL?K?1Xj&BsR-1BK zwv&)kMyMKiPz2n90}uuDQLBUwR+~~^Q7Bzth$6*`!q1ArQS77pu{(47f#ZgOWs(ib$BdK9jL?QUO{4C(8&_ zfd_tB`cF`>r|LDT4jv%ODl1)WHqP}KcSYWJyr7Ig?@p!n5o>-+i@%oLo(xvzon^9{00000NkvXXu0mjf D8pS}5 literal 0 HcmV?d00001 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