ImageTagger/flatpak/dev.nuculabs.ImageTagger.yaml

40 lines
1.4 KiB
YAML
Raw Normal View History

2024-05-03 15:39:30 +00:00
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
2024-05-11 17:59:03 +00:00
# - --socket=wayland
2024-05-03 15:39:30 +00:00
# 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/
# Desktop Integration
2024-05-11 12:40:58 +00:00
- chmod +x /app/bin/image/lib/jexec
- chmod +x /app/bin/image/lib/jspawnhelper
- mkdir -p bin /app/share/{applications,icons/hicolor/512x512/apps,metainfo}
2024-05-03 15:39:30 +00:00
- mv ${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop
2024-05-11 12:40:58 +00:00
- mv ${FLATPAK_ID}.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png
2024-05-03 15:39:30 +00:00
sources:
- type: archive
path: ../img-ui/build/distributions/ImageTagger-linux.zip
# url: "https://github.com/dnutiu/ImageTagger/releases/download/v1.3/ImageTagger-linux-1.3.zip"
# sha256: 0f086e6a738b3d59e3d05cce9174316d95886e50278c03e5b452a67fd264ea40
2024-05-03 15:39:30 +00:00
- type: file
path: dev.nuculabs.ImageTagger.png
- type: file
path: dev.nuculabs.ImageTagger.desktop