forked from pantheon-tweaks/pantheon-tweaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.pantheon_tweaks.pantheon-tweaks.yml
129 lines (121 loc) · 4.69 KB
/
io.github.pantheon_tweaks.pantheon-tweaks.yml
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
app-id: io.github.pantheon_tweaks.pantheon-tweaks
# elementary SDK is not available on Flathub, so use GNOME SDK and install elementary stylesheet and granite as modules
runtime: org.gnome.Platform
runtime-version: '46'
sdk: org.gnome.Sdk
command: start-pantheon-tweaks
finish-args:
- '--share=ipc'
- '--socket=wayland'
- '--socket=fallback-x11'
# Grant read, write, and create access for settings.ini of GTK and theme dirs
- '--filesystem=~/.config/gtk-3.0:create'
- '--filesystem=~/.icons:create'
- '--filesystem=~/.local/share/sounds:create'
- '--filesystem=~/.local/share/themes:create'
# Pass the directory where the host's /usr is mounted under, so that we can load system theme files
- '--env=USR_DIR_PREFIX=/var/run/host'
# Needed to read/write GSettings of the host
- '--talk-name=ca.desrt.dconf'
- '--filesystem=xdg-run/dconf'
- '--filesystem=host:ro'
- '--env=DCONF_USER_CONFIG_DIR=.config/dconf'
- '--env=GIO_EXTRA_MODULES=/app/lib/gio/modules/'
# This is not recommended by Flathub though, we need it to access host's GSettings.
# From https://docs.flathub.org/docs/for-app-authors/linter/#finish-args-flatpak-spawn-access
# This allows applications to launch arbitrary commands on the host and is restricted and granted on a case-by-case basis.
# This must not be used unless absolutely necessary and when no existing solutions using Flatpak or portals exist.
- '--talk-name=org.freedesktop.Flatpak'
# Needed for PrefersAccentColor
- '--system-talk-name=org.freedesktop.Accounts'
modules:
# Patch dconf to read/write GSettings of the host
- name: dconf
buildsystem: meson
config-opts:
- '-Dbash_completion=false'
- '-Dman=false'
cleanup:
- '/bin'
- '/include'
- '/lib/pkgconfig'
- '/lib/systemd'
- '/libexec'
- '/share/dbus-1'
sources:
- type: archive
url: https://download.gnome.org/sources/dconf/0.40/dconf-0.40.0.tar.xz
sha256: cf7f22a4c9200421d8d3325c5c1b8b93a36843650c9f95d6451e20f0bcb24533
- type: patch
path: dconf-override.patch
- name: sassc
cleanup:
- '*'
buildsystem: autotools
sources:
- type: archive
url: https://github.com/sass/sassc/archive/refs/tags/3.6.2.tar.gz
sha256: 608dc9002b45a91d11ed59e352469ecc05e4f58fc1259fc9a9f5b8f0f8348a03
- type: script
dest-filename: autogen.sh
commands:
- autoreconf -si
modules:
- name: libsass
cleanup:
- '*'
buildsystem: autotools
sources:
- type: archive
url: https://github.com/sass/libsass/archive/refs/tags/3.6.5.tar.gz
sha256: 89d8f2c46ae2b1b826b58ce7dde966a176bac41975b82e84ad46b01a55080582
- type: script
dest-filename: autogen.sh
commands:
- autoreconf -si
- name: elementary-stylesheet
buildsystem: meson
cleanup:
- '/share/metainfo'
sources:
- type: archive
url: https://github.com/elementary/stylesheet/archive/refs/tags/8.1.0.tar.gz
sha256: 9a23f2e7a25993da5d9356e2840c6ce1c9a7c837a024a5a0cc5e3844df6c7901
- name: granite
buildsystem: meson
config-opts:
- '-Ddemo=false'
cleanup:
- '/share/icons'
- '/share/metainfo'
sources:
- type: archive
url: https://github.com/elementary/granite/archive/refs/tags/7.5.0.tar.gz
sha256: 9439733169c07cfc658144ceef90bebac5f024ffda4bbb65e8c1ab68e5580908
- name: switchboard
buildsystem: meson
cleanup:
# We use switchboard as a widget library; cleanup the unnecessary system settings app
- '/share/applications'
- '/share/metainfo'
- '/bin'
- '/share/glib-2.0/schemas/io.elementary.settings.gschema.xml'
- '/share/icons'
sources:
- type: archive
url: https://github.com/elementary/switchboard/archive/refs/tags/8.0.1.tar.gz
sha256: 6e17b9dc612b8f6e7da0cfd73e677d071019d6a2d4b2c2cf5f3c50a4a2f15835
- name: pantheon-tweaks
buildsystem: meson
sources:
- type: dir
path: .
- type: file
path: start-pantheon-tweaks.sh
post-install:
# Install wrapper script
- install -Dm 755 $FLATPAK_BUILDER_BUILDDIR/start-pantheon-tweaks.sh /app/bin/start-pantheon-tweaks
# Run the wrapper script instead of the executable
- 'desktop-file-edit --set-key=Exec --set-value=start-pantheon-tweaks /app/share/applications/io.github.pantheon_tweaks.pantheon-tweaks.desktop'
# Tell the real executable name to the WM to prevent duplicated dock icons
- 'desktop-file-edit --set-key=StartupWMClass --set-value=pantheon-tweaks /app/share/applications/io.github.pantheon_tweaks.pantheon-tweaks.desktop'