-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathorg.nanuc.Axolotl.yml
95 lines (94 loc) · 3.09 KB
/
org.nanuc.Axolotl.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
app-id: org.nanuc.Axolotl
runtime: org.gnome.Platform
runtime-version: "46"
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.node18
- org.freedesktop.Sdk.Extension.rust-stable
command: axolotl
finish-args:
# See https://docs.flatpak.org/en/latest/sandbox-permissions-reference.html
# Write access for the user download folder (to save media)
- --filesystem=xdg-download:rw
# TODO Can we use the Flatpak directories like XDG_CONFIG_DIR instead?
# File access for configs (read/write access, and create the directory if it doesn’t exist)
- --filesystem=~/.local/share/axolotl.nanuc:create
- --filesystem=~/.config/axolotl.nanuc:create
# Read access for home folder (to upload media)
- --filesystem=home:ro
# Network access - to receive and send messages
- --share=network
# X11 + XShm access
- --share=ipc
- --socket=fallback-x11
# Wayland access
- --socket=wayland
# Sound access
- --socket=pulseaudio
# OpenGL access
- --device=dri
# To send and receive notifications
- --talk-name=org.freedesktop.Notifications
modules:
- name: axolotl
buildsystem: simple
build-options:
# Add the node bin directory.
append-path: /usr/lib/sdk/node18/bin:/usr/lib/sdk/rust-stable/bin
env:
# Cargo config
CARGO_HOME: /run/build/axolotl/cargo
# Cargo offline mode
CARGO_NET_OFFLINE: "true"
build-commands:
- make build-axolotl-web
- make APP_ID=${FLATPAK_ID} DESTDIR=${FLATPAK_DEST} PREFIX="" install
sources:
- type: dir
path: ..
# Generated via flatpak-node-generator
- node-sources.json
# Generated via flatpak-cargo-generator
- cargo-sources.json
# Configure yarn to use the offline mirror
- type: inline
contents: |
yarn-offline-mirror /run/build/axolotl/flatpak-node/yarn-mirror
--install.offline true
--run.offline true
dest-filename: .yarnrc
modules:
- name: abseil
buildsystem: cmake-ninja
config-opts:
- -DABSL_PROPAGATE_CXX_STD=ON
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
cleanup:
- /include
- /lib/*.a
- /lib/cmake
- /lib/pkgconfig
sources:
- type: archive
url: https://github.com/abseil/abseil-cpp/releases/download/20240116.2/abseil-cpp-20240116.2.tar.gz
sha256: 733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc
- name: protobuf
buildsystem: cmake-ninja
config-opts:
- -Dprotobuf_ABSL_PROVIDER=package
- -Dprotobuf_BUILD_TESTS=OFF
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
cleanup:
- protoc
- /bin
- /doc
- /lib/*.a
- /lib/*.la
- /lib/libprotoc*
- /lib/libprotobuf-lite*
- /lib/plugins
- /lib/pkgconfig
sources:
- type: archive
url: https://github.com/protocolbuffers/protobuf/releases/download/v27.2/protobuf-27.2.tar.gz
sha256: e4ff2aeb767da6f4f52485c2e72468960ddfe5262483879ef6ad552e52757a77