-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflatpak-flutter.yaml
77 lines (77 loc) · 2.74 KB
/
flatpak-flutter.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# This file is used to generate flutter sources
# https://github.com/TheAppgineer/flatpak-flutter
app-id: com.gopeed.Gopeed
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm20
- org.freedesktop.Sdk.Extension.golang
command: gopeed
finish-args:
- --share=ipc
- --socket=wayland
- --socket=fallback-x11
- --share=network
- --device=dri
- --talk-name=org.kde.StatusNotifierWatcher
- --filesystem=xdg-download
- --own-name=com.gopeed.gopeed
cleanup:
- '*.a'
- '*.la'
- /include
- /lib/cmake
- /lib/pkgconfig
- /man
- /share/man
- /share/gtk-doc
- /var/lib
modules:
- shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json
- name: Gopeed
buildsystem: simple
build-options:
arch:
x86_64:
env:
BUNDLE_PATH: build/linux/x64/release/bundle
aarch64:
env:
BUNDLE_PATH: build/linux/arm64/release/bundle
build-args:
- --share=network
append-path: /usr/lib/sdk/llvm20/bin:/usr/lib/sdk/golang/bin:/run/build/Gopeed/flutter/bin
prepend-ld-library-path: /usr/lib/sdk/llvm20/lib
env:
PUB_CACHE: /run/build/Gopeed/.pub-cache
build-commands:
- go build -mod=vendor -tags nosqlite -ldflags="-w -s -X github.com/GopeedLab/gopeed/pkg/base.Version=$(grep
'^version:' ui/flutter/pubspec.yaml | cut -d ' ' -f 2 | cut -d '+' -f 1)"
-buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/GopeedLab/gopeed/bind/desktop
- go build -mod=vendor -ldflags="-w -s" -o ui/flutter/assets/exec/host github.com/GopeedLab/gopeed/cmd/host
- go build -mod=vendor -ldflags="-w -s" -o ui/flutter/assets/exec/updater github.com/GopeedLab/gopeed/cmd/updater
- cp -r ui/flutter/* .
- flutter build linux --release --dart-define="UPDATE_CHANNEL=linuxSnap"
- cp -r ${BUNDLE_PATH}/* ${FLATPAK_DEST}/bin
- install -Dm644 com.gopeed.Gopeed.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo
- install -Dm644 linux/assets/com.gopeed.Gopeed.desktop -t ${FLATPAK_DEST}/share/applications
- install -Dm644 assets/icon/icon.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg
sources:
- type: git
url: https://github.com/GopeedLab/gopeed.git
tag: v1.6.11
commit: bfad91dcab4baa426bf81c73066fff063c7f024c
x-checker-data:
type: git
tag-pattern: ^v([\d.]+)$
- type: file
path: com.gopeed.Gopeed.metainfo.xml
# go
- go.mod.yml
# flutter
- type: git
url: https://github.com/flutter/flutter.git
tag: 3.24.5
commit: dec2ee5c1f98f8e84a7d5380c05eb8a3d0a81668
dest: flutter