-
Notifications
You must be signed in to change notification settings - Fork 0
/
com.authy.Authy.yaml
70 lines (68 loc) · 2.31 KB
/
com.authy.Authy.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
app-id: com.authy.Authy
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: authy
tags:
- proprietary
finish-args:
- --socket=x11
- --device=dri
- --share=ipc
- --socket=pulseaudio
- --share=network
- --talk-name=org.freedesktop.secrets
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.kde.StatusNotifierWatcher
modules:
- name: squashfs
buildsystem: simple
build-commands:
- make -C squashfs-tools -j ${FLATPAK_BUILDER_N_JOBS} install INSTALL_DIR=${FLATPAK_DEST}/bin
sources:
- type: archive
url: https://github.com/plougher/squashfs-tools/archive/4.4.tar.gz
sha256: a7fa4845e9908523c38d4acf92f8a41fdfcd19def41bd5090d7ad767a6dc75c3
- type: patch
path: xz_support.patch
- type: patch
path: gcc10.diff
- shared-modules/libsecret/libsecret.json
- name: authy
buildsystem: simple
build-commands:
- install -D apply_extra "${FLATPAK_DEST}/bin/apply_extra"
- install authy "${FLATPAK_DEST}/bin/"
post-install:
- install -p -Dm644 "icon.png" "${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.png"
- install -Dm644 authy.desktop "${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop"
- install -Dm644 com.authy.Authy.metainfo.xml "${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml"
sources:
- type: extra-data
filename: authy.snap
url: https://api.snapcraft.io/api/v1/snaps/download/H8ZpNgIoPyvmkgxOWw5MSzsXK1wRZiHn_9.snap
sha256: 4718f1398adb9de55cb724c94ccbe837f51d444a2169959bd644dd11e23a9945
size: 67739648
x-checker-data:
type: snapcraft
name: authy
channel: stable
- type: script
dest-filename: apply_extra
commands:
- unsquashfs authy.snap
- rm authy.snap
- mv squashfs-root authy
- touch authy/chrome-sandbox && chmod +x authy/chrome-sandbox
- type: script
dest-filename: authy
commands:
- TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/extra/authy/authy "$@"
- type: file
path: com.authy.Authy.metainfo.xml
- type: file
path: authy.desktop
- type: file
path: icon.png