-
Notifications
You must be signed in to change notification settings - Fork 12
/
com.github.IsmaelMartinez.teams_for_linux.yml
88 lines (83 loc) · 3.77 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
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
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=fallback-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
- --env=ELECTRON_OZONE_PLATFORM_HINT=auto
# 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
dest-filename: teams-for-linux.deb
only-arches: [x86_64]
url: https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v1.12.5/teams-for-linux_1.12.5_amd64.deb
sha256: 2e133ce4554bcbd24c73a2cee4cddb597a32e260d6fd73f391b3f5306be47dc8
x-checker-data:
is-main-source: true
type: json
url: https://api.github.com/repos/IsmaelMartinez/teams-for-linux/releases/latest
version-query: .tag_name | sub("^v"; "")
timestamp-query: .published_at
url-query: .assets | map(.browser_download_url | select(endswith("_amd64.deb"))) | first
- type: file
dest-filename: teams-for-linux.deb
only-arches: [aarch64]
url: https://github.com/IsmaelMartinez/teams-for-linux/releases/download/v1.12.5/teams-for-linux_1.12.5_arm64.deb
sha256: f68b626b8e66cc22e404f76c6217d6032f2f34841e52aa5366f557fa03deb823
x-checker-data:
type: json
url: https://api.github.com/repos/IsmaelMartinez/teams-for-linux/releases/latest
version-query: .tag_name | sub("^v"; "")
timestamp-query: .published_at
url-query: .assets | map(.browser_download_url | select(endswith("_arm64.deb"))) | first
- type: file
dest-filename: com.github.IsmaelMartinez.teams_for_linux.metainfo.xml
url: https://raw.githubusercontent.com/IsmaelMartinez/teams-for-linux/v1.12.5/com.github.IsmaelMartinez.teams_for_linux.appdata.xml
sha256: cc0a067a2689342302c9e0e6f70d71fe1e85dded7a06fb337902d07b87864a05
x-checker-data:
type: json
url: https://api.github.com/repos/IsmaelMartinez/teams-for-linux/releases/latest
tag-query: .tag_name
version-query: .tag_name | sub("^v"; "")
timestamp-query: .published_at
url-query: '"https://raw.githubusercontent.com/IsmaelMartinez/teams-for-linux/" + $tag + "/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.metainfo.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/"