-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.authy.authy.yaml
73 lines (73 loc) · 2.37 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
71
72
73
app-id: com.authy.authy
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
command: authy
finish-args:
- --device=dri
- --filesystem=xdg-documents
- --filesystem=xdg-download
- --filesystem=xdg-pictures
- --filesystem=xdg-videos
- --share=ipc
- --share=network
- --socket=pulseaudio
# needs electron v11 (chromium v87) or newer with ozone enabled
# https://github.com/electron/electron/issues/10915
# - --socket=wayland
- --socket=x11
cleanup:
- /include
- /lib/pkgconfig
- /share/man
- '*.a'
- '*.la'
modules:
- name: authy
buildsystem: simple
build-commands:
- install -Dm755 -t /app/bin/ apply_extra authy stub_sandbox
- install -Dm644 ${FLATPAK_ID}.png -t /app/share/icons/hicolor/512x512/apps/
- install -Dm644 ${FLATPAK_ID}.desktop -t /app/share/applications/
sources:
- type: extra-data
filename: authy.squashfs
url: https://api.snapcraft.io/api/v1/snaps/download/H8ZpNgIoPyvmkgxOWw5MSzsXK1wRZiHn_6.snap
sha256: 09de30335d0015be91f23d38d2090f462923e0fd3e461713dfd42621eeab041e
size: 64262144
x-checker-data:
type: snapcraft
name: authy
channel: stable
- type: script
dest-filename: apply_extra
commands:
- unsquashfs -quiet -no-progress authy.squashfs
- rm authy.squashfs
- rm squashfs-root/{command,desktop-*}.sh
- rmdir squashfs-root/data-dir/{icons,sounds,themes} squashfs-root/{data-dir,gnome-platform,scripts}
- rm -r squashfs-root/meta squashfs-root/{lib,usr}
- mv squashfs-root/* ./
- rmdir squashfs-root
- install -Dm755 /app/bin/stub_sandbox chrome-sandbox
- type: script
dest-filename: authy
commands:
- export TMPDIR=$XDG_RUNTIME_DIR/app/$FLATPAK_ID
- exec zypak-wrapper /app/extra/authy "$@"
- type: script
dest-filename: stub_sandbox
commands:
- |
echo Stub sandbox ignoring command: $@
exit 1
- type: file
path: com.authy.authy.desktop
- type: file
path: com.authy.authy.png
modules:
- ../shared-modules/unsquashfs/unsquashfs.json
- ../shared-modules/libbsd/libbsd.json
- ../shared-modules/libkeyutils/libkeyutils.json