-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathio.github.blackbartblues.Wayfile.yml
More file actions
155 lines (143 loc) · 6.53 KB
/
Copy pathio.github.blackbartblues.Wayfile.yml
File metadata and controls
155 lines (143 loc) · 6.53 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# Flatpak manifest for Wayfile.
#
# Local build (run from repo root after committing your changes):
#
# flatpak install -y flathub org.kde.Platform//6.9 org.kde.Sdk//6.9
# flatpak-builder --force-clean --user --install \
# build-flatpak io.github.blackbartblues.Wayfile.yml
# flatpak run io.github.blackbartblues.Wayfile
#
# For local iteration without committing, swap the `wayfile` module's source
# from `type: git` to `type: dir, path: .` (see comment below).
#
# For Flathub submission, this file is copied to a separate flathub repo
# and the `wayfile` source must stay as `type: git` with a pinned tag/commit.
app-id: io.github.blackbartblues.Wayfile
runtime: org.kde.Platform
runtime-version: '6.9'
sdk: org.kde.Sdk
command: wayfile
finish-args:
# Display + input
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --device=dri
# Network — required for the Remote Access feature (sftp/ftp/dav via gvfs)
- --share=network
# File manager scope: needs to read/write user files anywhere on the host.
# Flathub reviewers grant this exception for general-purpose file managers
# (Nautilus, Dolphin, Files use the same). `--filesystem=host` already
# covers /mnt, /media, /run/media at their real paths through host bind
# mounts, so no separate --filesystem entries are needed for those.
- --filesystem=host
# Access GVFS mounts (sftp:// etc.) exposed via the user runtime dir
- --filesystem=xdg-run/gvfs
- --filesystem=xdg-run/gvfsd
# DBus
# Mount/unmount removable devices (DeviceModel)
- --system-talk-name=org.freedesktop.UDisks2
# Required by `flatpak-spawn --host` so FileOperations can route
# openFile / openFileWith / gio trash through the host, using the host's
# default applications and the host's XDG trash instead of sandbox-local
# copies. Same pattern as the Nautilus and Dolphin flatpaks.
- --talk-name=org.freedesktop.Flatpak
# Prefer Wayland, fall back to xcb
- --env=QT_QPA_PLATFORM=wayland;xcb
cleanup:
- /include
- /lib/pkgconfig
- /lib/cmake
- /share/man
- /share/doc
- '*.a'
- '*.la'
modules:
# ── wl-clipboard ───────────────────────────────────────────────────────
# ClipboardManager spawns wl-copy / wl-paste. Bundle them so the
# clipboard works without depending on host tools.
#
# We deliberately skip `meson install` because upstream's install rules
# try to write fish completions to /usr/share/fish/vendor_completions.d,
# which is read-only inside the Flatpak build sandbox. Instead we run
# meson + ninja ourselves and install only the two binaries we need.
- name: wl-clipboard
buildsystem: simple
build-commands:
- meson setup _build --prefix=/app --buildtype=release
- ninja -C _build
- install -Dm755 _build/src/wl-copy /app/bin/wl-copy
- install -Dm755 _build/src/wl-paste /app/bin/wl-paste
sources:
- type: git
url: https://github.com/bugaevc/wl-clipboard.git
tag: v2.2.1
commit: 3eb912c274042cd5deed6b478b39908a12f37498
# ── fd ─────────────────────────────────────────────────────────────────
# Search backend. Optional — SearchService falls back to a Qt iterator
# if `fd` / `fdfind` is not on PATH — but bundling it makes search fast.
# We use the upstream prebuilt x86_64 static binary to avoid pulling in
# the full Rust toolchain. (Note: Flathub generally prefers building
# from source; if reviewers push back, switch to the rust-stable SDK
# extension and build fd from its git tag.)
- name: fd
buildsystem: simple
build-commands:
- install -Dm755 fd /app/bin/fd
sources:
- type: archive
only-arches:
- x86_64
url: https://github.com/sharkdp/fd/releases/download/v10.2.0/fd-v10.2.0-x86_64-unknown-linux-musl.tar.gz
sha256: d9bfa25ec28624545c222992e1b00673b7c9ca5eb15393c40369f10b28f9c932
- type: archive
only-arches:
- aarch64
url: https://github.com/sharkdp/fd/releases/download/v10.2.0/fd-v10.2.0-aarch64-unknown-linux-gnu.tar.gz
sha256: 6de8be7a3d8ca27954a6d1e22bc327af4cf6fc7622791e68b820197f915c422b
# Same note as above — replace with the real checksum.
# ── bat ────────────────────────────────────────────────────────────────
# Optional syntax-highlighted text previews. Same prebuilt-binary
# approach as fd to avoid pulling in the Rust toolchain.
- name: bat
buildsystem: simple
build-commands:
- install -Dm755 bat /app/bin/bat
sources:
- type: archive
only-arches:
- x86_64
url: https://github.com/sharkdp/bat/releases/download/v0.24.0/bat-v0.24.0-x86_64-unknown-linux-musl.tar.gz
sha256: d39a21e3da57fe6a3e07184b3c1dc245f8dba379af569d3668b6dcdfe75e3052
# placeholder — flatpak-builder will print the real checksum on
# the first run; paste it back in here.
- type: archive
only-arches:
- aarch64
url: https://github.com/sharkdp/bat/releases/download/v0.24.0/bat-v0.24.0-aarch64-unknown-linux-gnu.tar.gz
sha256: feccae9a0576d97609c57e32d3914c5116136eab0df74c2ab74ef397d42c5b10
# ── Wayfile ─────────────────────────────────────────────────────────────
- name: wayfile
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_INSTALL_PREFIX=/app
- -DWAYFILE_DATA_DIR=/app/share/wayfile
- -DBUILD_TESTS=OFF
- -DWAYFILE_ENABLE_PCH=OFF
- -DWAYFILE_ENABLE_UNITY_BUILD=OFF
post-install:
# Required by Flathub: every app must install its license file to
# $FLATPAK_DEST/share/licenses/$FLATPAK_ID.
- install -Dm644 LICENSE /app/share/licenses/io.github.blackbartblues.Wayfile/LICENSE
sources:
# ── FLATHUB SUBMISSION ──
- type: git
url: https://github.com/blackbartblues/Wayfile.git
tag: v1.1.0
# ── LOCAL ITERATION ──
# For testing uncommitted changes locally, comment out the git
# source above and uncomment the dir source below. Remember to
# revert before tagging a new release.
# - type: dir
# path: .