forked from fyne-io/flatpak_demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.fyne.flatpak_demo.yml
40 lines (34 loc) · 1.37 KB
/
io.fyne.flatpak_demo.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
app-id: io.fyne.flatpak_demo
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
command: flatpak_demo
finish-args:
- --share=ipc # Share IPC namespace with the host (necessary for X11).
- --socket=x11
- --device=dri # OpenGL rendering support.
# Only needed if building with -tags wayland.
#- --socket=wayland
# Needed to support desktop notifications.
- --talk-name=org.freedesktop.Notifications
# Open up the documents folder as a minimal example.
- --filesystem=xdg-documents
build-options:
env:
- GOBIN=/app/bin
- GOROOT=/usr/lib/sdk/golang
modules:
- name: flatpak_demo
buildsystem: simple
build-commands:
- $GOROOT/bin/go build -o flatpak_demo
- install -Dm00755 flatpak_demo $FLATPAK_DEST/bin/flatpak_demo
- install -Dm00644 Icon.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/$FLATPAK_ID.png
- install -Dm00644 $FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop
- install -Dm00644 $FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml
sources:
- type: archive
url: "https://github.com/fyne-io/flatpak_demo/archive/refs/tags/v1.2.0.tar.gz"
sha256: bd892edacf56af9d443fd7f9f4825a33165a46d4d7bb56aee3de690144798c18