-
-
Notifications
You must be signed in to change notification settings - Fork 159
/
org.versotile.verso.yml
56 lines (54 loc) · 1.99 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
53
54
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
- cargo --offline build --release --package verso
# Install Verso
- install -Dm755 ./target/release/versoview -t /app/bin/
- 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.3-5/libmozjs-x86_64-unknown-linux-gnu.tar.gz
sha256: c196c1078dbe8c3953a5368c2c99f20043e0b626706adb24a452ffbda6196bfb
only-arches:
- x86_64