Skip to content

Commit

Permalink
Add release build config
Browse files Browse the repository at this point in the history
  • Loading branch information
blissd committed Apr 8, 2024
1 parent 3ab1a24 commit 6cf539b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@ vars:

tasks:

flatpak-build:
desc: Build and install with flatpak-builder
flatpak-devel:
desc: Development build and install with flatpak-builder
cmds:
- flatpak-builder --user --install --force-clean flatpak_app build-aux/dev.romantics.Photos.Devel.json

flatpak-release:
desc: Release build and install with flatpak-builder
cmds:
- flatpak-builder --user --install --force-clean flatpak_app build-aux/dev.romantics.Photos.json

licence-update:
desc: "Update licence annotations for project files"
cmds:
Expand Down
55 changes: 55 additions & 0 deletions build-aux/dev.romantics.Photos.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"id": "dev.romantics.Photos",
"runtime": "org.gnome.Platform",
"runtime-version": "45",
"sdk": "org.gnome.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-stable",
"org.freedesktop.Sdk.Extension.llvm16"
],
"command": "photo-romantic",
"finish-args": [
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--device=dri",
"--filesystem=xdg-pictures:ro",
"--env=RUST_LOG=photo_romantic=debug",
"--env=G_MESSAGES_DEBUG=none",
"--env=RUST_BACKTRACE=1"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm16/bin",
"build-args": [
"--share=network"
],
"env": {
"CARGO_REGISTRIES_CRATES_IO_PROTOCOL": "sparse",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER": "clang",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold",
"CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER": "clang",
"CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_RUSTFLAGS": "-C link-arg=-fuse-ld=/usr/lib/sdk/rust-stable/bin/mold"
},
"test-args": [
"--socket=x11",
"--share=network"
]
},
"modules": [
{
"name": "photo-romantic",
"buildsystem": "meson",
"run-tests": true,
"config-opts": [
"-Dprofile=default"
],
"sources": [
{
"type": "dir",
"path": "../"
}
]
}
]
}

0 comments on commit 6cf539b

Please sign in to comment.