From 2787211f0d0285415598a989e4622144c4a85335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Sat, 23 Sep 2023 09:05:30 +0200 Subject: [PATCH] release: update release version fetcher --- Cargo.lock | 2 +- release.md | 1 + src/config.rs.in | 2 +- src/meson.build | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9c80e57..333ad86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -526,7 +526,7 @@ dependencies = [ [[package]] name = "gst_pipeline_studio" -version = "0.3.2" +version = "0.3.3" dependencies = [ "anyhow", "futures-channel", diff --git a/release.md b/release.md index ec1e276..2b3f743 100644 --- a/release.md +++ b/release.md @@ -5,6 +5,7 @@ - cargo.toml - VERSION - index.html + - And rebuild to regenerate the cargo.lock - create a tag on gitlab - Fetch the package from the `linux release` job or you can make it manually with: diff --git a/src/config.rs.in b/src/config.rs.in index 74c714e..b950634 100644 --- a/src/config.rs.in +++ b/src/config.rs.in @@ -1,3 +1,3 @@ // SPDX-License-Identifier: GPL-3.0-or-later pub static APP_ID: &str = @APP_ID@; -pub static VERSION: &str = @VERSION@; +pub static VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/src/meson.build b/src/meson.build index aadec57..1968902 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,6 +1,5 @@ conf = configuration_data() conf.set_quoted('APP_ID', application_id) -conf.set_quoted('VERSION', version + version_suffix) configure_file( input: 'config.rs.in',