github.com/pojntfx/hydrapp/hydrapp@v0.0.0-20240516002902-d08759d6ca9f/pkg/renderers/flatpak/manifest.yaml (about) 1 app-id: {{ .AppID }} 2 runtime: org.freedesktop.Platform 3 runtime-version: "23.08" 4 sdk: org.freedesktop.Sdk 5 sdk-extensions: 6 - org.freedesktop.Sdk.Extension.node18 7 - org.freedesktop.Sdk.Extension.golang 8 command: {{ .AppID }} 9 finish-args: 10 - --socket=session-bus 11 - --share=network 12 - --socket=fallback-x11 13 - --socket=wayland 14 - --device=dri 15 - --filesystem=/tmp:rw 16 modules: 17 - name: {{ .AppID }} 18 buildsystem: simple 19 build-commands: 20 - git config --global --add safe.directory '*' 21 - GOPROXY='https://proxy.golang.org,direct' GOFLAGS="-x {{ .GoFlags }}" sh -c '. /usr/lib/sdk/golang/enable.sh && . /usr/lib/sdk/node18/enable.sh && {{ .GoGenerate }}' 22 - . /usr/lib/sdk/golang/enable.sh && export GOPROXY='https://proxy.golang.org,direct' GOFLAGS='-x {{ .GoFlags }}' && go build -o out/{{ .AppID }} {{ .GoMain }} 23 - install -D out/{{ .AppID }} /app/bin/{{ .AppID }} 24 - for icon in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512; do cp {{ .GoMain }}/icon-${icon}.png out/icon-${icon}.png; done 25 - desktop-file-install --dir=/app/share/applications {{ .GoMain }}/{{ .AppID }}.desktop 26 - appstream-util validate-relax {{ .GoMain }}/{{ .AppID }}.metainfo.xml 27 - install -D -m 0644 {{ .GoMain }}/{{ .AppID }}.metainfo.xml /app/share/metainfo/{{ .AppID }}.metainfo.xml 28 - for icon in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512; do install -D -m 0644 out/icon-${icon}.png /app/share/icons/hicolor/${icon}/apps/{{ .AppID }}.png; done 29 build-options: 30 build-args: 31 - "--share=network" 32 sources: 33 - type: dir 34 path: {{ .SrcDir }}