Repository navigation
Expand file tree
/
Copy pathco.hyprlab.Vireo.yml
More file actions
67 lines (64 loc) · 3.35 KB
/
Copy pathco.hyprlab.Vireo.yml
File metadata and controls
67 lines (64 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Flatpak manifest for Vireo — builds the self-hosted Flatpak distributed from
# vireo.hyprlab.co. (The GNOME runtime + SDK below come from the flathub *remote* — that
# is just where the org.gnome.Platform runtime is hosted; Vireo itself is not on
# Flathub.)
#
# Local test build (both tools are already installed):
# python3 flatpak-cargo-generator.py Cargo.lock -o cargo-sources.json
# flatpak install flathub org.gnome.Sdk//50 org.gnome.Platform//50 \
# org.freedesktop.Sdk.Extension.rust-stable//25.08
# flatpak-builder --user --install --force-clean build-dir co.hyprlab.Vireo.yml
# flatpak run co.hyprlab.Vireo
id: co.hyprlab.Vireo
runtime: org.gnome.Platform
runtime-version: '50'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: vireo
finish-args:
- --share=ipc
- --share=network # IMAP/SMTP, OAuth loopback, Gravatar
- --socket=wayland
- --socket=fallback-x11
- --device=dri # WebKit rendering
- --talk-name=org.freedesktop.secrets # keyring: passwords + OAuth tokens
- --talk-name=org.gnome.OnlineAccounts # import GNOME Online Accounts
- --talk-name=org.gnome.Settings # "Open Online Accounts" button
- --talk-name=org.gnome.evolution.dataserver.* # GNOME Contacts (Evolution Data Server)
- --talk-name=org.gnome.Contacts # "Open GNOME Contacts" button (D-Bus activation)
- --talk-name=org.freedesktop.Flatpak # flatpak-spawn --host fallback for GNOME Contacts
# Read the host's Evolution Data Server address books (contacts list is read
# from these SQLite caches; the sandbox's own XDG dirs are empty).
- --filesystem=xdg-data/evolution:ro
- --filesystem=xdg-cache/evolution:ro
- --filesystem=xdg-config/evolution:ro
# Read the old Veem app's sandbox data so accounts, settings and cached mail
# migrate automatically on first run (Veem was renamed Vireo in 1.6.0).
- --filesystem=~/.var/app/com.getveem.Veem:ro
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/vireo/cargo
# No Google OAuth client is bundled — Google sign-in goes through GNOME Online
# Accounts (the account editor guides users there). Microsoft's client ID is
# built into the source and works out of the box.
modules:
- name: vireo
buildsystem: simple
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose
- install -Dm755 target/release/vireo /app/bin/vireo
- install -Dm644 data/co.hyprlab.Vireo.desktop /app/share/applications/co.hyprlab.Vireo.desktop
- install -Dm644 data/icons/hicolor/256x256/apps/co.hyprlab.Vireo.png /app/share/icons/hicolor/256x256/apps/co.hyprlab.Vireo.png
- install -Dm644 data/icons/hicolor/512x512/apps/co.hyprlab.Vireo.png /app/share/icons/hicolor/512x512/apps/co.hyprlab.Vireo.png
- install -Dm644 data/co.hyprlab.Vireo.metainfo.xml /app/share/metainfo/co.hyprlab.Vireo.metainfo.xml
sources:
- type: git
url: https://github.com/hyprlab/vireo.git
tag: v1.12.6
commit: 13730120df3d74fe581105d04a45057ff4e8873b
# Vendored crate sources for the offline Flatpak build. Generate with:
# flatpak-cargo-generator.py Cargo.lock -o cargo-sources.json
- cargo-sources.json