-
-
Notifications
You must be signed in to change notification settings - Fork 157
/
org.versotile.verso.yml
54 lines (52 loc) · 1.87 KB
/
org.versotile.verso.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
id: org.versotile.verso
runtime: org.freedesktop.Platform
runtime-version: '23.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
- org.freedesktop.Sdk.Extension.llvm18
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --socket=pulseaudio
- --socket=system-bus
- --socket=session-bus
- --share=network
- --device=dri
- --filesystem=home
build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/bin
prepend-ld-library-path: /usr/lib/sdk/llvm18/lib
env:
CARGO_HOME: /run/build/verso/cargo
MOZJS_ARCHIVE: /run/build/verso/libmozjs-x86_64-unknown-linux-gnu.tar.gz
command: verso
modules:
- name: verso
buildsystem: simple
build-commands:
# Install pyhton packages required by script crates
- pip3 install --prefix=/app --no-deps ./third_party/ply
- pip3 install --prefix=/app --no-deps ./third_party/WebIDL/
# Desktop file
- install -d /app/share/applications
- install -Dm755 ./org.versotile.verso.desktop /app/share/applications/${FLATPAK_ID}.desktop
- install -Dm644 ./icons/icon256x256.png /app/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png
# Build Verso release profile
- cargo --offline fetch --manifest-path Cargo.toml
- cargo --offline build --release --features flatpak
# Install Verso
- install -Dm755 ./target/release/verso -t /app/bin/
- mkdir /app/resources
- cp -r ./resources/* /app/resources
sources:
- cargo-sources.json
- type: dir
path: .
- type: file
# Update the link whenever mozjs-sys is updated
url: https://github.com/servo/mozjs/releases/download/mozjs-sys-v0.128.0-6/libmozjs-x86_64-unknown-linux-gnu.tar.gz
sha256: 9093a3cdb576097565ff5c6f756f980b273cb13e50148f946b471efc900f867e
only-arches:
- x86_64