vorta/flatpak/com.borgbase.Vorta.yaml

91 lines
3.1 KiB
YAML

app-id: com.borgbase.Vorta
runtime: org.kde.Platform
runtime-version: '5.12'
sdk: org.kde.Sdk
branch: devel
command: vorta
finish-args:
# X11/Wayland
- --socket=x11
- --share=ipc
- --socket=wayland
- --device=dri
# Sync
- --share=network
# Filesystem access
- --filesystem=host
# dconf access
- --filesystem=xdg-run/dconf
- --filesystem=~/.config/dconf:ro
- --talk-name=ca.desrt.dconf
- --env=DCONF_USER_CONFIG_DIR=.config/dconf
# Tray icon
- --talk-name=org.kde.StatusNotifierWatcher
- --own-name=org.kde.StatusNotifierItem-2-1
- --own-name=org.kde.StatusNotifierItem-4-1
# Mounting
- --talk-name=org.freedesktop.DBus.*
- --talk-name=org.freedesktop.Flatpak.*
# Allow access to keyring
- --talk-name=org.freedesktop.secrets
# SSH
- --socket=ssh-auth
- --own-name=org.KDE.*
# Notifications
- --talk-name=org.freedesktop.Notifications
build-options:
env:
MOUNT_FUSE_PATH: ../tmp/
modules:
- dependencies/pyqt5.json
- dependencies/openssh.json
- dependencies/libfuse.json
- dependencies/python3-setuptools.json
- dependencies/python3-setuptools_git.json
- dependencies/python3-setuptools_scm.json
- dependencies/python3-borgbackup.json
- dependencies/python3-pytest.json
- dependencies/python3-llfuse.json
- dependencies/python3-appdirs.json
- dependencies/python3-apscheduler.json
- dependencies/python3-paramiko.json
- dependencies/python3-peewee.json
- dependencies/python3-psutil.json
- dependencies/python3-python-dateutil.json
- dependencies/python3-qdarkstyle.json
- dependencies/python3-secretstorage.json
- dependencies/python3-pytest-runner.json
- name: vorta
buildsystem: simple
build-commands:
- make translations-to-qm
- pip3 install --prefix=/app --no-deps .
- mkdir -p /app/share/metainfo/
- cp src/vorta/assets/metadata/com.borgbase.Vorta.appdata.xml /app/share/metainfo/
- mkdir -p /app/share/icons/hicolor/512x512/apps/
- cp src/vorta/assets/icons/512x512/com.borgbase.Vorta.png /app/share/icons/hicolor/512x512/apps/
- mkdir -p /app/share/icons/hicolor/256x256/apps/
- cp src/vorta/assets/icons/256x256/com.borgbase.Vorta.png /app/share/icons/hicolor/256x256/apps/
- mkdir -p /app/share/icons/hicolor/128x128/apps/
- cp src/vorta/assets/icons/128x128/com.borgbase.Vorta.png /app/share/icons/hicolor/128x128/apps/
- mkdir -p /app/share/icons/hicolor/64x64/apps/
- cp src/vorta/assets/icons/64x64/com.borgbase.Vorta.png /app/share/icons/hicolor/64x64/apps/
- mkdir -p /app/share/icons/hicolor/48x48/apps/
- cp src/vorta/assets/icons/48x48/com.borgbase.Vorta.png /app/share/icons/hicolor/48x48/apps/
- mkdir -p /app/share/icons/hicolor/32x32/apps/
- cp src/vorta/assets/icons/32x32/com.borgbase.Vorta.png /app/share/icons/hicolor/32x32/apps/
- mkdir -p /app/share/icons/hicolor/24x24/apps/
- cp src/vorta/assets/icons/24x24/com.borgbase.Vorta.png /app/share/icons/hicolor/24x24/apps/
- mkdir -p /app/share/applications/
- cp src/vorta/assets/metadata/com.borgbase.Vorta.desktop /app/share/applications/
sources:
- type: dir
path: ../