carrier/devbox.json
randogoth 2d18caa500
Some checks failed
Release / macos (push) Has been cancelled
Release / linux (push) Has been cancelled
Release / flatpak (push) Has been cancelled
Release / release (push) Has been cancelled
CI / macos (push) Has been cancelled
CI / linux (push) Has been cancelled
Add Flatpak bundle to the release workflow
Builds carrier-x86_64.flatpak from the linux job's already-built binary
rather than recompiling inside flatpak-builder's sandbox (which can't
see the shared cargo cache anyway, making an in-sandbox build pure
duplicate work). com.randogoth.carrier.release.json is a separate
manifest from the main one, which stays as-is for local
`devbox run package` dev-from-source builds.
2026-10-07 20:39:57 +03:00

52 lines
1.6 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.17.2/.schema/devbox.schema.json",
"packages": {
"rustc": "latest",
"cargo": "latest",
"pkg-config": "latest",
"rustfmt": "latest",
"gtk4": {
"version": "latest",
"platforms": ["x86_64-linux", "aarch64-linux"],
"outputs": ["out", "dev"]
},
"libadwaita": {
"version": "latest",
"platforms": ["x86_64-linux", "aarch64-linux"],
"outputs": ["out", "dev"]
}
},
"env": {
"PATH": "/opt/homebrew/bin:/opt/homebrew/sbin:$PATH"
},
"shell": {
"init_hook": [
"export PKG_CONFIG_PATH=\"$DEVBOX_PACKAGES_DIR/lib/pkgconfig:$PKG_CONFIG_PATH\"",
"if [[ \"$(uname)\" == \"Darwin\" ]]; then export PKG_CONFIG_PATH=\"/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH\"; export PKG_CONFIG_PATH_arm64_apple_darwin=\"/opt/homebrew/lib/pkgconfig\"; fi"
],
"scripts": {
"build": [
"cargo build --release"
],
"run": [
"cargo build --release && ./target/release/carrier"
],
"dev": [
"cargo build && ./target/debug/carrier"
],
"test": [
"cargo test"
],
"check": [
"cargo fmt --check && cargo build && cargo test"
],
"package": [
"flatpak-builder --force-clean --user --install-deps-from=flathub --install .flatpak com.randogoth.carrier.json"
],
"bundle-flatpak": [
"flatpak-builder --force-clean --repo=.flatpak-repo --install-deps-from=flathub .flatpak-build com.randogoth.carrier.release.json",
"flatpak build-bundle .flatpak-repo carrier-x86_64.flatpak com.randogoth.carrier"
]
}
}
}