From 0b4a879a982f34792d5aabef65fe82776728cedf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Sun, 1 Oct 2023 07:23:09 +0200 Subject: [PATCH] build(binaries): name static binaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Christina Sørensen --- Justfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index 6568ad55..e048b95a 100644 --- a/Justfile +++ b/Justfile @@ -120,6 +120,12 @@ tar BINARY TARGET: zip BINARY TARGET: zip -j ./target/"bin-$(convco version)"/{{BINARY}}_{{TARGET}}.zip ./target/{{TARGET}}/release/{{BINARY}} +tar_static BINARY TARGET: + tar czvf ./target/"bin-$(convco version)"/{{BINARY}}_{{TARGET}}_static.tar.gz -C ./target/{{TARGET}}/release/ ./{{BINARY}} + +zip_static BINARY TARGET: + zip -j ./target/"bin-$(convco version)"/{{BINARY}}_{{TARGET}}_static.zip ./target/{{TARGET}}/release/{{BINARY}} + binary BINARY TARGET: rustup target add {{TARGET}} cross build --release --target {{TARGET}} @@ -129,8 +135,8 @@ binary BINARY TARGET: binary_static BINARY TARGET: rustup target add {{TARGET}} RUSTFLAGS='-C target-feature=+crt-static' cross build --release --target {{TARGET}} - just tar {{BINARY}} {{TARGET}} - just zip {{BINARY}} {{TARGET}} + just tar_static {{BINARY}} {{TARGET}} + just zip_static {{BINARY}} {{TARGET}} checksum: echo "# Checksums"