-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcom.github.IsmaelMartinez.teams_for_linux.yml
55 lines (53 loc) · 2.06 KB
/
com.github.IsmaelMartinez.teams_for_linux.yml
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
app-id: com.github.IsmaelMartinez.teams_for_linux
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
command: teams-for-linux
separate-locales: false
finish-args:
- --share=ipc
- --socket=wayland
- --socket=x11
- --socket=pulseaudio
- --share=network
- --device=all
- --filesystem=home
- --filesystem=xdg-run/pipewire-0
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.PowerManagement
- --talk-name=org.freedesktop.ScreenSaver
- --talk-name=org.gtk.Notifications
- --talk-name=org.gnome.SessionManager
- --env=XDG_CURRENT_DESKTOP=Unity
# required to fix cursor scaling on wayland
- --env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons
rename-desktop-file: teams-for-linux.desktop
rename-icon: teams-for-linux
modules:
- name: teams-for-linux
buildsystem: simple
sources:
- type: file
url: https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v1.4.17/teams-for-linux_1.4.17_amd64.deb
sha256: 83f173e1bf7f4cc63e8d398177b7a07e038a4c3788d326a444e64b8d26711d73
- type: file
path: com.github.IsmaelMartinez.teams_for_linux.appdata.xml
- type: script
dest-filename: teams-for-linux.sh
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- exec zypak-wrapper /app/teams-for-linux/teams-for-linux "$@"
build-commands:
- ar x teams-for-linux_*.deb
- rm -f teams-for-linux_*.deb
- tar -xf data.tar.xz
- rm -f control.tar.gz data.tar.xz debian-binary
- cp -r opt/* usr/* $FLATPAK_DEST
- rm -rf opt usr
- install teams-for-linux.sh $FLATPAK_DEST/bin/teams-for-linux
- install -D -m 644 -t $FLATPAK_DEST/share/metainfo $FLATPAK_ID.appdata.xml
- desktop-file-edit --set-key Exec --set-value "teams-for-linux %U" ${FLATPAK_DEST}/share/applications/teams-for-linux.desktop
- rm -rf "${FLATPAK_DEST}/share/icons/hicolor/1024x1024/"