-
Notifications
You must be signed in to change notification settings - Fork 13
/
com.microsoft.edge-dev.yaml
89 lines (89 loc) · 2.92 KB
/
com.microsoft.edge-dev.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
app-id: com.microsoft.edge-dev
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
base: org.chromium.Chromium.BaseApp
base-version: '21.08'
command: edge
finish-args:
- --device=all
- --device=dri
- --env=CHROME_VERSION_EXTRA=dev
- --env=GTK_PATH=/app/lib/gtkmodules
- --filesystem=xdg-download
- --filesystem=xdg-run/pipewire-0:ro
- --filesystem=/run/.heim_org.h5l.kcm-socket
- --own-name=org.mpris.MediaPlayer2.edge.*
- --require-version=1.8.2
- --share=ipc
- --share=network
- --socket=cups
- --socket=pulseaudio
- --socket=wayland
- --socket=x11
- --system-talk-name=org.freedesktop.Avahi
- --system-talk-name=org.freedesktop.UPower
- --talk-name=com.canonical.AppMenu.Registrar
- --talk-name=org.freedesktop.FileManager1
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
- --talk-name=org.gnome.SessionManager
# https://github.com/flathub/org.chromium.Chromium.BaseApp/pull/3
#cleanup-commands:
# - /app/cleanup-BaseApp.sh
modules:
- ../shared-modules/zypak/zypak.json
- name: edge
buildsystem: simple
build-commands:
- install -Dm755 -t /app/bin/ apply_extra edge stub_sandbox
- |
install -Dm644 /dev/stdin /app/etc/cobalt.ini <<EOF
[Application]
EntryPoint=/app/extra/msedge
EOF
- |
install -Dm644 /dev/stdin /app/etc/ld.so.conf <<EOF
/app/extra
EOF
- install -Dm644 -t /app/share/applications/ ${FLATPAK_ID}.desktop
- install -Dm644 -t /app/share/icons/hicolor/256x256/apps/ ${FLATPAK_ID}.png
sources:
- type: extra-data
# From https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev
url: https://packages.microsoft.com/repos/edge/pool/main/m/microsoft-edge-dev/microsoft-edge-dev_104.0.1278.2-1_amd64.deb
sha256: a2f74fcf0132997153c5e2b6c79a04c35cb517623b8d15734a083dd0624ed0d6
filename: edge.deb
x-checker-data:
type: debian-repo
package-name: microsoft-edge-dev
root: https://packages.microsoft.com/repos/edge
dist: stable
component: main
size: 121860508
- type: script
dest-filename: apply_extra
commands:
- set -e
- |
bsdtar -Oxf edge.deb 'data.tar*' |
bsdtar -xf - \
--strip-components=4 \
--exclude='./opt/microsoft/msedge-dev/nacl*' \
./opt/microsoft/msedge-dev
- rm edge.deb
- install -Dm755 /app/bin/stub_sandbox msedge-sandbox
- type: script
dest-filename: edge
commands:
- exec cobalt "$@"
- type: script
dest-filename: stub_sandbox
commands:
- |
echo Stub sandbox ignoring command: $@
exit 1
- type: file
path: com.microsoft.edge-dev.desktop
- type: file
path: com.microsoft.edge-dev.png