-
Notifications
You must be signed in to change notification settings - Fork 2
/
org.getzola.zola.yml
38 lines (35 loc) · 1.25 KB
/
org.getzola.zola.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
app-id: org.getzola.zola
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: zola
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/zola/cargo
finish-args:
- --share=network
- --filesystem=host
modules:
- name: zola
buildsystem: simple
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- cargo --offline build --release --verbose
- install -Dm755 ./target/release/zola -t /app/bin/
- install -D ./zola.metainfo.xml $FLATPAK_DEST/share/metainfo/${FLATPAK_ID}.metainfo.xml
sources:
- type: archive
url: https://github.com/getzola/zola/archive/refs/tags/v0.19.2.tar.gz
sha256: bae10101b4afff203f781702deeb0a60d3ab0c9f0c7a616a7c1e0c504c33c93f
x-checker-data:
type: json
url: https://api.github.com/repos/getzola/zola/releases/latest
version-query: .tag_name | sub("^v"; "")
url-query: '@uri "https://github.com/getzola/zola/archive/refs/tags/\(.tag_name).tar.gz"'
timestamp-query: .published_at
- type: patch
path: 0001-Metainfo-Add-0.19.2.patch
- cargo-sources.json