BoxBuddyRS/io.github.dvlv.boxbuddyrs.json

55 lines
1.7 KiB
JSON

{
"app-id": "io.github.dvlv.boxbuddyrs",
"runtime": "org.gnome.Platform",
"runtime-version": "45",
"sdk": "org.gnome.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-stable"
],
"sdk-version": "23.08",
"command": "boxbuddy-rs",
"finish-args": [
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--talk-name=org.freedesktop.Flatpak"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin"
},
"modules": [{
"name": "boxbuddy",
"buildsystem": "simple",
"build-options": {
"env": {
"CARGO_HOME": "/run/build/boxbuddy/cargo"
}
},
"build-commands": [
"cargo --offline fetch --manifest-path Cargo.toml --verbose",
"cargo --offline build --release --verbose",
"install -Dm755 ./target/release/boxbuddy-rs -t /app/bin/",
"mkdir -p /app/share/applications",
"install -D io.github.dvlv.boxbuddyrs.desktop /app/share/applications/",
"install -Dp -m 644 io.github.dvlv.boxbuddyrs.metainfo.xml /app/share/metainfo/io.github.dvlv.boxbuddyrs.metainfo.xml",
"mkdir -p /app/share/icons/hicolor/scalable/apps",
"install -D icons/io.github.dvlv.boxbuddyrs.svg /app/share/icons/hicolor/scalable/apps",
"mkdir /app/icons",
"cp icons/io.github.dvlv.boxbuddyrs.svg /app/icons/io.github.dvlv.boxbuddyrs.svg",
"mkdir /app/po",
"cp -r po /app/"
],
"sources": [{
"type": "dir",
"path": "."
},
"generated-sources.json"
]
}]
}