-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.go2tv.go2tv.yml
42 lines (37 loc) · 1.23 KB
/
app.go2tv.go2tv.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
app-id: app.go2tv.go2tv
runtime: org.freedesktop.Platform
runtime-version: &runtime-version "24.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.golang
add-extensions:
org.freedesktop.Platform.ffmpeg-full:
version: '24.08'
directory: lib/ffmpeg
add-ld-path: .
command: go2tv
finish-args:
- --share=ipc
- --share=network
- --socket=x11
- --device=dri
- --filesystem=host
build-options:
env:
- GOBIN=/app/bin
- GOROOT=/usr/lib/sdk/golang
modules:
- name: go2tv
buildsystem: simple
build-commands:
- $GOROOT/bin/go build -trimpath -ldflags="-s -w" -o go2tv cmd/go2tv/go2tv.go
- install -Dm00755 go2tv $FLATPAK_DEST/bin/go2tv
- install -Dm00644 assets/linux/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop
- install -Dm00644 assets/linux/$FLATPAK_ID.appdata.xml $FLATPAK_DEST/share/appdata/$FLATPAK_ID.appdata.xml
- install -Dm00644 assets/go2tv-icon-desktop-512.png $FLATPAK_DEST/share/icons/hicolor/512x512/apps/$FLATPAK_ID.png
- mkdir -p ${FLATPAK_DEST}/lib/ffmpeg
sources:
- type: git
url: "https://github.com/alexballas/go2tv"
commit: 9b6e831f521803a1931a042c7a96c0ebfaa39621
- go.mod.yml