diff options
author | xengineering <me@xengineering.eu> | 2025-07-26 18:11:34 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2025-07-26 19:02:33 +0200 |
commit | 0f8c729e691b450cc994e28d68eab8d3250d8457 (patch) | |
tree | 1c4cea391a0c53d2b7bc7c9928d339d50bb33f44 | |
parent | 73d1db5dddbae00477c3ebfb25dd64db0a2a8ac8 (diff) | |
download | iot-contact-0f8c729e691b450cc994e28d68eab8d3250d8457.tar iot-contact-0f8c729e691b450cc994e28d68eab8d3250d8457.tar.zst iot-contact-0f8c729e691b450cc994e28d68eab8d3250d8457.zip |
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`.
-rw-r--r-- | meson.build | 11 |
1 files changed, 8 insertions, 3 deletions
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, ], |