From 0f8c729e691b450cc994e28d68eab8d3250d8457 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 26 Jul 2025 18:11:34 +0200 Subject: Add project version and use for deploy archive All build artifacts should be deployed in a single `*.tar.zst` file. This archive and the single top-level content (a directory called `*` in this case) should contain the project name and version in its name. The latter is added with this commit so that there is now an `iot-contact-v0.0.0-dev.tar.zst` instead of an `iot-contact.tar.zst`. --- meson.build | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 4548f4d..a6fd4a0 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,7 @@ -project('iot-contact') +project( + 'iot-contact', + version : '0.0.0-dev', +) tar = find_program('tar', required : true) @@ -22,12 +25,14 @@ artifacts = [ kicad_pcb, ] +project_version_string = meson.project_name() + '-v' + meson.project_version() + custom_target( - output: meson.project_name() + '.tar.zst', + output: project_version_string + '.tar.zst', command: [ tar, '--zstd', - '--transform=s|^|' + meson.project_name() + '/|', + '--transform=s|^|' + project_version_string + '/|', '-cf', '@OUTPUT@', artifacts, ], -- cgit v1.2.3-70-g09d2