-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorg.torproject.torbrowser-launcher.yaml
219 lines (210 loc) · 8.78 KB
/
org.torproject.torbrowser-launcher.yaml
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
app-id: org.torproject.torbrowser-launcher
runtime: org.kde.Platform
runtime-version: 5.15-24.08
sdk: org.kde.Sdk
base: com.riverbankcomputing.PyQt.BaseApp
base-version: 5.15-24.08
cleanup-commands:
- /app/cleanup-BaseApp.sh
build-options:
env:
- BASEAPP_REMOVE_WEBENGINE=1
separate-locales: false
command: torbrowser-launcher
rename-desktop-file: torbrowser.desktop
rename-icon: torbrowser
finish-args:
- --share=ipc
- --share=network
- --socket=wayland
- --socket=fallback-x11
- --device=dri
- --socket=pulseaudio
- --env=GTK_USE_PORTAL=1
- --env=MOZ_ENABLE_WAYLAND=1
modules:
- shared-modules/dbus-glib/dbus-glib.json
- name: PyQtApp
- name: SWIG
config-opts:
- --without-boost
- --without-alllang
cleanup:
- /bin
- /share/swig
sources:
- type: archive
url: https://sourceforge.net/projects/swig/files/swig/swig-4.3.0/swig-4.3.0.tar.gz
sha256: f7203ef796f61af986c70c05816236cbd0d31b7aa9631e5ab53020ab7804aa9e
x-checker-data:
type: anitya
project-id: 4919
url-template: https://sourceforge.net/projects/swig/files/swig/swig-$version/swig-$version.tar.gz
- name: gpgme
config-opts:
- --enable-languages=python
sources:
- type: archive
url: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-1.24.1.tar.bz2
sha256: ea05d0258e71061d61716584ec34cef59330a91340571edc46b78374973ba85f
x-checker-data:
type: anitya
project-id: 1239
url-template: https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-$version.tar.bz2
post-install:
- mv /app/lib/python3.12/site-packages/gpg-1.24.1-*.egg/gpg /app/lib/python3.12/site-packages/
- mv /app/lib/python3.12/site-packages/gpg-1.24.1-*.egg/EGG-INFO /app/lib/python3.12/site-packages/gpg-1.24.1-py3.10.egg-info
- rm -r /app/lib/python3.12/site-packages/gpg-1.24.1-*.egg
- name: python3-requests
buildsystem: simple
build-commands:
- pip3 install --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
requests
sources:
- type: file
url: https://files.pythonhosted.org/packages/92/ec/089608b791d210aec4e7f97488e67ab0d33add3efccb83a056cbafe3a2a6/setuptools-75.8.0.tar.gz
sha256: c5afc8f407c626b8313a86e10311dd3f661c6cd9c09d4bf8c15c0e11f9f2b0e6
x-checker-data:
type: pypi
name: setuptools
- type: file
url: https://files.pythonhosted.org/packages/8a/98/2d9906746cdc6a6ef809ae6338005b3f21bb568bea3165cfc6a243fdc25c/wheel-0.45.1.tar.gz
sha256: 661e1abd9198507b1409a20c02106d9670b2576e916d58f520316666abca6729
x-checker-data:
type: pypi
name: wheel
- type: file
url: https://files.pythonhosted.org/packages/d5/ae/09427bea9227a33ec834ed5461432752fd5d02b14f93dd68406c91684622/flit_core-3.10.1.tar.gz
sha256: 66e5b87874a0d6e39691f0e22f09306736b633548670ad3c09ec9db03c5662f7
x-checker-data:
type: pypi
name: flit_core
- type: file
url: https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz
sha256: 12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9
x-checker-data:
type: pypi
name: idna
- type: file
url: https://files.pythonhosted.org/packages/63/70/2bf7780ad2d390a8d301ad0b550f1581eadbd9a20f896afe06353c2a2913/requests-2.32.3.tar.gz
sha256: 55365417734eb18255590a9ff9eb97e9e1da868d4ccd6402399eaf68af20a760
x-checker-data:
type: pypi
name: requests
- type: file
url: https://files.pythonhosted.org/packages/0f/bd/1d41ee578ce09523c81a15426705dd20969f5abf006d1afe8aeff0dd776a/certifi-2024.12.14.tar.gz
sha256: b650d30f370c2b724812bee08008be0c4163b163ddaec3f2546c1caf65f191db
x-checker-data:
type: pypi
name: certifi
- type: file
url: https://files.pythonhosted.org/packages/e4/e8/6ff5e6bc22095cfc59b6ea711b687e2b7ed4bdb373f7eeec370a97d7392f/urllib3-1.26.20.tar.gz
sha256: 40c2dc0c681e47eb8f90e7e27bf6ff7df2e677421fd46756da1161c39ca70d32
x-checker-data:
type: pypi
name: urllib3
versions:
<: '2'
'>=': 1.21.1
- type: file
url: https://files.pythonhosted.org/packages/a1/34/44964211e5410b051e4b8d2869c470ae8a68ae274953b1c7de6d98bbcf94/charset-normalizer-2.1.1.tar.gz
sha256: 5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845
x-checker-data:
type: pypi
name: charset-normalizer
versions:
<: '3'
'>=': '2'
- type: file
url: https://files.pythonhosted.org/packages/f3/0d/f7b6ab21ec75897ed80c17d79b15951a719226b9fababf1e40ea74d69079/chardet-5.2.0.tar.gz
sha256: 1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7
x-checker-data:
type: pypi
name: chardet
- name: python3-socks
buildsystem: simple
build-commands:
- python3 setup.py install --prefix=${FLATPAK_DEST} --root=/
sources:
- type: archive
url: https://files.pythonhosted.org/packages/bd/11/293dd436aea955d45fc4e8a35b6ae7270f5b8e00b53cf6c024c83b657a11/PySocks-1.7.1.tar.gz
sha256: 3f8804571ebe159c380ac6de37643bb4685970655d3bba243530d6558b799aa0
x-checker-data:
type: pypi
name: PySocks
- name: python3-packaging
buildsystem: simple
build-commands:
- pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
packaging
sources:
- type: file
url: https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl
sha256: 4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274
x-checker-data:
type: pypi
name: six
packagetype: bdist_wheel
- type: file
url: https://files.pythonhosted.org/packages/88/ef/eb23f262cca3c0c4eb7ab1933c3b1f03d021f2c48f54763065b6f0e321be/packaging-24.2-py3-none-any.whl
sha256: 09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759
x-checker-data:
type: pypi
name: packaging
packagetype: bdist_wheel
- type: file
url: https://files.pythonhosted.org/packages/1c/a7/c8a2d361bf89c0d9577c934ebb7421b25dc84bf3a8e3ac0a40aed9acc547/pyparsing-3.2.1-py3-none-any.whl
sha256: 506ff4f4386c4cec0590ec19e6302d3aedb992fdc02c761e90416f158dacf8e1
x-checker-data:
type: pypi
name: pyparsing
packagetype: bdist_wheel
- name: python3-distro
buildsystem: simple
build-commands:
- pip3 install --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST}
distro
sources:
- type: file
url: https://files.pythonhosted.org/packages/12/b3/231ffd4ab1fc9d679809f356cebee130ac7daa00d6d6f3206dd4fd137e9e/distro-1.9.0-py3-none-any.whl
sha256: 7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2
x-checker-data:
type: pypi
name: distro
packagetype: bdist_wheel
- name: libnotify
buildsystem: meson
config-opts:
- -Dtests=false
- -Dintrospection=disabled
- -Dman=false
- -Dgtk_doc=false
- -Ddocbook_docs=disabled
sources:
- type: archive
url: https://download.gnome.org/sources/libnotify/0.8/libnotify-0.8.3.tar.xz
sha256: ee8f3ef946156ad3406fdf45feedbdcd932dbd211ab4f16f75eba4f36fb2f6c0
x-checker-data:
type: anitya
project-id: 13149
url-template: https://download.gnome.org/sources/libnotify/$major.$minor/libnotify-$version.tar.xz
- name: torbrowser-launcher
buildsystem: simple
sources:
- type: archive
url: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/archive/v0.3.7/torbrowser-launcher-v0.3.7.tar.gz
sha256: bd348fd5d923f078c75870a9139678a467b2ab5ba21117fd42ccf0cfa3e4be21
x-checker-data:
type: anitya
project-id: 6359
url-template: https://gitlab.torproject.org/tpo/applications/torbrowser-launcher/-/archive/v$version/torbrowser-launcher-v$version.tar.gz
- type: patch
path: use-flatpak-sys-prefix.patch
- type: patch
path: add-developer-to-appdata.patch
build-commands:
- python3 setup.py install --prefix=${FLATPAK_DEST} --root=/ --optimize=1
post-install:
- desktop-file-edit --set-key="Icon" --set-value="org.torproject.torbrowser-launcher"
/app/share/applications/torbrowser-settings.desktop
- mv /app/share/applications/torbrowser-settings.desktop /app/share/applications/org.torproject.torbrowser-launcher.settings.desktop