Commit 6bad503c authored by Sophie Herold's avatar Sophie Herold 🔨

Build details

parent 99ab7ba9
......@@ -4,3 +4,4 @@ Cargo.lock
tags.*
.vscode/
build/
.flatpak-builder/
......@@ -19,6 +19,8 @@ finish-args:
- --share=ipc
- --socket=x11
- --socket=fallback-x11
# syslog
- --filesystem=/run/systemd/journal/dev-log
# SSH-keys etc
- --socket=ssh-auth
# secrete service (keyring)
......
......@@ -2,12 +2,12 @@
APP_ID=$(cat data/APPLICATION_ID)
REPO_NAME=pika-backup-dev
REPO_DIR=flatpak_repo
REPO_DIR=target/flatpak_repo
flatpak remove $APP_ID -y
flatpak-builder --install-deps-from=https://dl.flathub.org/repo/ \
--user --verbose --force-clean -y --repo=$REPO_DIR flatpak_out build-aux/ci.manifest.yml
flatpak build-bundle $REPO_DIR $APP_ID.flatpak $APP_ID
flatpak build-bundle $REPO_DIR target/$APP_ID.flatpak $APP_ID
flatpak --force remote-delete $REPO_NAME
flatpak --user remote-add --no-gpg-verify $REPO_NAME $REPO_DIR
flatpak --user install -y $REPO_NAME $APP_ID
......
......@@ -6,6 +6,13 @@ cargo_script = find_program(join_paths(meson.source_root(), 'build-aux/meson-car
bin = meson.project_name()
git = find_program('git', required: false)
git_info = ''
if git.found()
git_info = run_command(git, '--git-dir', meson.source_root(),
'describe', '--always', '--dirty').stdout()
endif
cargo_options = '--release'
rust_target = 'release'
if get_option('profile') == 'dev'
......@@ -30,6 +37,7 @@ cargo_release = custom_target(
cargo_options,
join_paths(meson.build_root(), 'target', rust_target, bin),
'@OUTPUT@',
git_info,
]
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment