mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-20 00:51:17 -08:00
86 lines
3.1 KiB
YAML
86 lines
3.1 KiB
YAML
id: moe.sable.client
|
|
|
|
runtime: org.freedesktop.Platform
|
|
runtime-version: '25.08'
|
|
sdk: org.freedesktop.Sdk
|
|
|
|
# Supplies zypak, which makes Chromium's sandbox work inside Flatpak. Sable's
|
|
# Linux build embeds CEF and ships no setuid chrome-sandbox.
|
|
base: org.electronjs.Electron2.BaseApp
|
|
base-version: '25.08'
|
|
|
|
command: sable
|
|
|
|
finish-args:
|
|
- --socket=wayland
|
|
- --socket=fallback-x11
|
|
- --share=ipc
|
|
- --device=dri
|
|
- --share=network
|
|
# Voice and video calls.
|
|
- --socket=pulseaudio
|
|
# Camera. Flathub review may ask to narrow this once CEF can use the portal.
|
|
- --device=all
|
|
# Keyring, where the E2EE session store keeps its secret.
|
|
- --talk-name=org.freedesktop.secrets
|
|
- --talk-name=org.freedesktop.Notifications
|
|
# Tauri's single-instance plugin owns this service.
|
|
- --own-name=moe.sable.client.SingleInstance
|
|
# Tray icon.
|
|
- --talk-name=org.kde.StatusNotifierWatcher
|
|
# Saving and attaching files.
|
|
- --filesystem=xdg-download
|
|
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
|
|
|
|
modules:
|
|
- name: sable
|
|
buildsystem: simple
|
|
build-commands:
|
|
- install -Dm755 apply_extra ${FLATPAK_DEST}/bin/apply_extra
|
|
- install -Dm755 sable.sh ${FLATPAK_DEST}/bin/sable
|
|
- install -Dm644 moe.sable.client.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml
|
|
- install -Dm644 moe.sable.client.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
|
|
- install -Dm644 32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/${FLATPAK_ID}.png
|
|
- install -Dm644 64x64.png ${FLATPAK_DEST}/share/icons/hicolor/64x64/apps/${FLATPAK_ID}.png
|
|
- install -Dm644 128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/${FLATPAK_ID}.png
|
|
- install -Dm644 256x256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
|
|
sources:
|
|
- type: extra-data
|
|
filename: sable.tar.gz
|
|
url: https://github.com/SableClient/Sable/releases/download/v1.21.0/Sable-1.21.0-linux-x86_64.tar.gz
|
|
sha256: '0000000000000000000000000000000000000000000000000000000000000000'
|
|
size: 0
|
|
only-arches: [x86_64]
|
|
x-checker-data:
|
|
type: json
|
|
url: https://api.github.com/repos/SableClient/Sable/releases/latest
|
|
version-query: .tag_name | sub("^v"; "")
|
|
url-query: .assets[] | select(.name == "Sable-" + $version + "-linux-x86_64.tar.gz")
|
|
| .browser_download_url
|
|
is-main-source: true
|
|
- type: script
|
|
dest-filename: apply_extra
|
|
commands:
|
|
- set -eu
|
|
- mkdir -p sable
|
|
- tar --no-same-owner -xzf sable.tar.gz -C sable
|
|
- rm sable.tar.gz
|
|
- type: file
|
|
path: sable.sh
|
|
- type: file
|
|
path: moe.sable.client.desktop
|
|
- type: file
|
|
path: moe.sable.client.metainfo.xml
|
|
- type: file
|
|
path: icons/32x32.png
|
|
dest-filename: 32x32.png
|
|
- type: file
|
|
path: icons/64x64.png
|
|
dest-filename: 64x64.png
|
|
- type: file
|
|
path: icons/128x128.png
|
|
dest-filename: 128x128.png
|
|
- type: file
|
|
path: icons/256x256.png
|
|
dest-filename: 256x256.png
|