-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.someones.Lonewolf.yml
78 lines (77 loc) · 2.79 KB
/
site.someones.Lonewolf.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
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
app-id: site.someones.Lonewolf
runtime: org.gnome.Platform
runtime-version: '45'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
- org.freedesktop.Sdk.Extension.rust-stable
command: lonewolf
finish-args:
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --share=network
- --device=dri
- --filesystem=home
modules:
- name: unifdef
no-autogen: true
make-install-args:
- prefix=${FLATPAK_DEST}
sources:
- type: archive
url: https://dotat.at/prog/unifdef/unifdef-2.12.tar.xz
sha256: 43ce0f02ecdcdc723b2475575563ddb192e988c886d368260bc0a63aee3ac400
cleanup:
- '*'
- name: webkit2gtk-4.0
sources:
- type: archive
url: https://webkitgtk.org/releases/webkitgtk-2.40.5.tar.xz
sha256: 7de051a263668621d91a61a5eb1c3771d1a7cec900043d4afef06c326c16037f
buildsystem: cmake-ninja
#no-parallel-make: true
config-opts:
- -DPORT=GTK
- -DCMAKE_BUILD_TYPE=Release
- -DENABLE_DOCUMENTATION=OFF
- -DENABLE_GAMEPAD=OFF
- -DUSE_SOUP2=ON
- -DENABLE_BUBBLEWRAP_SANDBOX=OFF
modules:
- shared-modules/libsoup/libsoup-2.4.json
- name: lonewolf
buildsystem: simple
build-options:
append-path: /usr/lib/sdk/node18/bin:/usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/lonewolf/cargo
XDG_CACHE_HOME: /run/build/lonewolf/flatpak-node/npm-cache
npm_config_offline: 'true'
npm_config_cache: /run/build/lonewolf/flatpak-node/npm-cache
npm_config_nodedir: /usr/lib/sdk/node18
CYPRESS_INSTALL_BINARY: "0"
sources:
- type: git
url: https://github.com/aichingm/lonewolf.git
tag: v1.4.0
commit: 4f7af26bcddcec8dd0765898458ab56587db9a1d
- type: file
path: icons.ts
- cargo-sources.json
- node-sources.json
build-commands:
# install deps
- (cd lonewolf-tauri; npm ci --no-audit --offline --cache=/run/build/lonewolf/flatpak-node/npm-cache)
- (cd lonewolf-tauri; cargo --offline fetch --manifest-path src-tauri/Cargo.toml --verbose)
# copy icons
- mv icons.ts lonewolf/assets/
- (cd lonewolf; make check)
# build
- (cd lonewolf-tauri; make src-tauri/icons/512x512-lonewolf.png public/lonewolf.png public/icon.png tauri-icons)
- (cd lonewolf-tauri; npm run --offline tauri build -- -b deb)
# install
- install -Dm755 -t /app/bin/ lonewolf-tauri/src-tauri/target/release/bundle/deb/*/data/usr/bin/*
- install -Dm644 -t /app/share/applications/ lonewolf-tauri/site.someones.Lonewolf.desktop
- install -Dm644 -T lonewolf/assets/icon.svg /app/share/icons/hicolor/scalable/apps/site.someones.Lonewolf.svg
- install -Dm644 -t /app/share/metainfo/ lonewolf-tauri/site.someones.Lonewolf.appdata.xml