This repository has been archived by the owner on Dec 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathio.github.Figma_Linux.figma_linux.yml
65 lines (65 loc) · 2.45 KB
/
io.github.Figma_Linux.figma_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
id: io.github.Figma_Linux.figma_linux
sdk: org.freedesktop.Sdk
runtime: org.freedesktop.Platform
runtime-version: '23.08'
base: org.electronjs.Electron2.BaseApp
base-version: '23.08'
finish-args:
- '--share=ipc'
- '--socket=x11'
- '--device=dri'
- '--share=network'
- '--filesystem=xdg-pictures'
command: figma-linux
rename-icon: figma-linux
modules:
- name: figma-linux
buildsystem: simple
build-commands:
- ar x figma-linux_*.deb
- rm figma-linux_*.deb
- tar xf data.tar.xz
- cp -r opt/figma-linux /app/figma-linux
- mkdir -p /app/share/icons/hicolor
- cp -r usr/share/icons/hicolor/* /app/share/icons/hicolor
- install figma-linux.sh /app/bin/figma-linux
- >-
install -Dm644 io.github.Figma_Linux.figma_linux.desktop
/app/share/applications/io.github.Figma_Linux.figma_linux.desktop
- install -Dm644 ${FLATPAK_ID}.appdata.xml -t /app/share/appdata/
sources:
- type: file
only-arches:
- x86_64
url: >-
https://github.com/Figma-Linux/figma-linux/releases/download/v0.11.3/figma-linux_0.11.3_linux_amd64.deb
sha256: f547f20aa82c83d5c017267b57b4e8824428bb8c7e8b11547e35d9d7faa50e60
x-checker-data:
type: json
url: https://api.github.com/repos/Figma-Linux/figma-linux/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: >
.assets[] | select(.name=="figma-linux_" + $version +
"_linux_amd64.deb") | .browser_download_url
- type: file
only-arches:
- aarch64
url: >-
https://github.com/Figma-Linux/figma-linux/releases/download/v0.11.3/figma-linux_0.11.3_linux_arm64.deb
sha256: 58d05ead9ba0936d3fc2e044df913dc62d7538ada9b72c1921007a5557c7f45f
x-checker-data:
type: json
url: https://api.github.com/repos/Figma-Linux/figma-linux/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: >
.assets[] | select(.name=="figma-linux_" + $version +
"_linux_arm64.deb") | .browser_download_url
- type: script
dest-filename: figma-linux.sh
commands:
- export TMPDIR="$XDG_RUNTIME_DIR/app/$FLATPAK_ID"
- exec zypak-wrapper /app/figma-linux/figma-linux "$@"
- type: file
path: io.github.Figma_Linux.figma_linux.desktop
- type: file
path: io.github.Figma_Linux.figma_linux.appdata.xml