-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathcloud.journey.journey.yaml
76 lines (76 loc) · 2.44 KB
/
cloud.journey.journey.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
app-id: cloud.journey.journey
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
command: journey
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: journey
buildsystem: simple
build-commands:
- install -Dm755 -t /app/bin/
apply_extra journey 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: journey.squashfs
url: https://api.snapcraft.io/api/v1/snaps/download/TWwObnuGiM3Urabc9hR2Xg2bJs6J8f2Y_23.snap
sha256: 94286dc928e8d9cdf8b2d3897b70f009089838b7f45680172d366fc8a9cfd885
x-checker-data:
type: snapcraft
name: journey
channel: stable
size: 81227776
- type: script
dest-filename: apply_extra
commands:
- unsquashfs -quiet -no-progress journey.squashfs
- rm journey.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: journey
commands:
- export TMPDIR=$XDG_RUNTIME_DIR/app/$FLATPAK_ID
- exec zypak-wrapper /app/extra/journey "$@"
- type: script
dest-filename: stub_sandbox
commands:
- |
echo Stub sandbox ignoring command: $@
exit 1
- type: file
path: cloud.journey.journey.desktop
- type: file
path: cloud.journey.journey.png
modules:
- ../shared-modules/unsquashfs/unsquashfs.json
- ../shared-modules/libbsd/libbsd.json
- ../shared-modules/libkeyutils/libkeyutils.json