-
Notifications
You must be signed in to change notification settings - Fork 3
/
manifest.yaml
46 lines (46 loc) · 1.53 KB
/
manifest.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
app-id: com.github.vikdevelop.canvadesktop
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
base: org.electronjs.Electron2.BaseApp
base-version: "24.08"
command: canva.sh
sdk-extensions:
- org.freedesktop.Sdk.Extension.node22
finish-args:
- --share=ipc
- --socket=x11
- --share=network
- --filesystem=xdg-download
- --filesystem=xdg-pictures
- --device=dri
build-options:
append-path: /usr/lib/sdk/node22/bin
env:
NPM_CONFIG_LOGLEVEL: info
modules:
- name: canva
buildsystem: simple
build-options:
env:
XDG_CACHE_HOME: /run/build/canva/flatpak-node/cache
build-args:
- --share=network
build-commands:
- yarn
- mkdir canva
- yarn electron-packager ./ canva --platform=linux --arch=x64 --electron-version=15.4.1 --out=canva/
- mkdir /app/main
- cp -R canva/canva-linux-x64/* /app/main
- install -D -t /app/bin canva.sh
- install -D -t /app/share/applications flatpak/com.github.vikdevelop.canvadesktop.desktop
- install -D -t /app/share/metainfo flatpak/com.github.vikdevelop.canvadesktop.metainfo.xml
- install -D -t /app/share/icons/hicolor/128x128/apps resources/com.github.vikdevelop.canvadesktop.png
sources:
- type: archive
url: https://github.com/vikdevelop/canvadesktop/archive/refs/tags/1.1.tar.gz
sha256: cde9d5145629c6d8265c317528d8ead9f6d8dc66ea9d3f2eb3fac1f06901c830
- type: script
dest-filename: canva.sh
commands:
- zypak-wrapper.sh /app/main/canva "$@"