From 561caf9fdb7ba03be210fdfd302d71d164c56263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christina=20S=C3=B8rensen?= Date: Mon, 11 Sep 2023 11:48:55 +0200 Subject: [PATCH] build(just): add compression, checksum gen for bin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This helps automating the release process. Signed-off-by: Christina Sørensen --- Justfile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Justfile b/Justfile index cffd94de..42e2bd3f 100644 --- a/Justfile +++ b/Justfile @@ -142,9 +142,27 @@ alias itest := integration_tests # usage: cross @cross: rustup toolchain install stable + mkdir -p ./target/"bin-$(convco version)" + + # Build + ## Linux cross build --target x86_64-unknown-linux-gnu --release + tar czvf ./target/"bin-$(convco version)"/eza_x86_64-unknown-linux-gnu.tar.gz -C ./target/x86_64-unknown-linux-gnu/release/ ./eza cross build --target aarch64-unknown-linux-gnu --release + tar czvf ./target/"bin-$(convco version)"/eza_aarch64-unknown-linux-gnu.tar.gz -C ./target/aarch64-unknown-linux-gnu/release/ ./eza cross build --target arm-unknown-linux-gnueabihf --release - # cross build --target aarch64-apple-darwin --release + tar czvf ./target/"bin-$(convco version)"/arm-unknown-linux-gnueabihf.tar.gz -C ./target/arm-unknown-linux-gnueabihf/release/ ./eza + ## Windows cross build --target x86_64-pc-windows-gnu --release - # cross build --target aarch64-pc-windows-gnullvm --release + zip -j ./target/"bin-$(convco version)"/x86_64-pc-windows-gnu.zip ./target/x86_64-pc-windows-gnu/release/eza.exe + + # Generate Checksums + echo "# Checksums" + echo "## sha256sum" + echo "```" + sha256sum ./target/"bin-$(convco version)"/* + echo "```" + echo "## md5sum" + echo "```" + md5sum ./target/"bin-$(convco version)"/* + echo "```"