add flatpak dir

This commit is contained in:
Denis-Cosmin Nutiu 2024-05-03 18:39:30 +03:00
parent 75c2f078a3
commit 7bf4a9dced
6 changed files with 61 additions and 0 deletions

3
flatpak/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
build-dir
.idea
.flatpak-builder

3
flatpak/debug.sh Executable file
View file

@ -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

View file

@ -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;

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

View file

@ -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

9
flatpak/readme.md Normal file
View file

@ -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.