-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.github.fralonra.PpdEditor.yml
42 lines (39 loc) · 1.64 KB
/
io.github.fralonra.PpdEditor.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
app-id: io.github.fralonra.PpdEditor
runtime: org.freedesktop.Platform
runtime-version: "23.08"
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
command: ppd-editor
finish-args:
- --device=dri
- --filesystem=home
- --share=ipc
- --socket=x11
build-options:
env:
EDITOR_ID: "io.github.fralonra.PpdEditor"
VIEWER_ID: "io.github.fralonra.PpdViewer"
modules:
- name: ppd-editor
sources:
- type: git
url: https://github.com/fralonra/ppd-editor
tag: v0.1.2_1
commit: 55940bcf321741eeabf45c12baf73f0ec3c3e273
- cargo-sources.json
buildsystem: simple
build-commands:
- cargo --offline fetch --manifest-path Cargo.toml --verbose
- GIT_COMMIT_HASH=$(git rev-parse --short HEAD) cargo --offline build --release --features flatpak --verbose
- install -Dm755 target/release/ppd-editor /app/bin/ppd-editor
- install -Dm755 target/release/ppd-viewer /app/bin/ppd-viewer
- install -Dm644 build/linux/PpdEditor.desktop /app/share/applications/${EDITOR_ID}.desktop
- install -Dm644 build/linux/PpdViewer.desktop /app/share/applications/${VIEWER_ID}.desktop
- install -Dm644 build/linux/PpdEditor.metainfo.xml /app/share/metainfo/${EDITOR_ID}.metainfo.xml
- install -Dm644 build/logo/ppd-editor.svg /app/share/icons/hicolor/scalable/apps/${EDITOR_ID}.svg
- install -Dm644 build/logo/ppd-viewer.svg /app/share/icons/hicolor/scalable/apps/${VIEWER_ID}.svg
build-options:
append-path: /usr/lib/sdk/rust-stable/bin
env:
CARGO_HOME: /run/build/ppd-editor/cargo