BoxBuddyRS/io.github.dvlv.boxbuddyrs.json
Dvlv fe4b74b52e
Some checks failed
Publish Release / Publish binaries (push) Has been cancelled
bump gettext, replace uses of gettext macro with format, bump flatpak gnome runtime
2024-10-15 17:50:31 +01:00

62 lines
2 KiB
JSON

{
"app-id": "io.github.dvlv.boxbuddyrs",
"runtime": "org.gnome.Platform",
"runtime-version": "47",
"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",
"--filesystem=xdg-download:rw"
],
"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/*.svg /app/icons/",
"mkdir /app/po",
"cp -r po /app/",
"mkdir -p /app/share/locale/",
"cp -r po/{de_DE,it_IT,uk_UA,ru_RU,pt_BR} /app/share/locale/",
"mkdir -p /app/share/glib-2.0/schemas/",
"install -D io.github.dvlv.boxbuddyrs.gschema.xml /app/share/glib-2.0/schemas/",
"glib-compile-schemas /app/share/glib-2.0/schemas"
],
"sources": [{
"type": "dir",
"path": "."
},
"generated-sources.json"
]
}]
}