diff --git a/Taskfile.yml b/Taskfile.yml index abcc6832..43ea675c 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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: diff --git a/build-aux/dev.romantics.Photos.json b/build-aux/dev.romantics.Photos.json new file mode 100644 index 00000000..a54bf468 --- /dev/null +++ b/build-aux/dev.romantics.Photos.json @@ -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": "../" + } + ] + } + ] +} +