flatpak: Move to subdirectory

This commit is contained in:
Elias Projahn 2025-04-27 18:29:41 +02:00
parent 475b187eff
commit 4de1011876
3 changed files with 61 additions and 2 deletions

View file

@ -51,7 +51,7 @@
"sources": [
{
"type": "dir",
"path": "."
"path": ".."
}
]
}

View file

@ -0,0 +1,59 @@
{
"id": "de.johrpan.Musicus",
"runtime": "org.gnome.Platform",
"runtime-version": "48",
"sdk": "org.gnome.Sdk",
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.rust-stable",
"org.freedesktop.Sdk.Extension.llvm18"
],
"command": "musicus",
"finish-args": [
"--share=ipc",
"--share=network",
"--socket=fallback-x11",
"--socket=wayland",
"--socket=pulseaudio",
"--device=dri",
"--env=RUST_LOG=musicus=debug",
"--env=RUST_BACKTRACE=1",
"--env=G_MESSAGES_DEBUG=none"
],
"build-options": {
"append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/llvm18/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"
}
},
"modules": [
{
"name": "blueprint-compiler",
"buildsystem": "meson",
"sources": [
{
"type": "git",
"url": "https://gitlab.gnome.org/jwestman/blueprint-compiler.git",
"tag": "v0.16.0"
}
]
},
{
"name": "musicus",
"buildsystem": "meson",
"config-opts": [
"-Dprofile=release"
],
"sources": [
{
"type": "dir",
"path": ".."
}
]
}
]
}

View file

@ -34,7 +34,7 @@ cargo_opt += [ '--target-dir', meson.project_build_root() / 'src' ]
cargo_env = [ 'CARGO_HOME=' + meson.project_build_root() / 'cargo-home' ]
if get_option('profile') == 'release'
cargo_options += [ '--release' ]
cargo_opt += [ '--release' ]
rust_target = 'release'
message('Building in release mode')
else