From 4ca27ba0bbbeb48da69c8b1d40599e6a483c09c7 Mon Sep 17 00:00:00 2001 From: Julian Vesper Date: Wed, 1 Nov 2023 02:38:37 +0100 Subject: [PATCH] Add release recipe to Justfile --- Justfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Justfile b/Justfile index 4d7d8a6..a04701f 100644 --- a/Justfile +++ b/Justfile @@ -1,5 +1,18 @@ _default: @just --list +# Convert statement from LATIN9 encoding to UTF8 encoding convert FILE: iconv -f LATIN9 -t UTF8 {{FILE}} -o {{without_extension(FILE)}}_utf8.{{extension(FILE)}} + +_build_release: + zig build release-artifacts + +_pack_release: + zip zig-out/release/comdirect-spending-calculator-x86_64-windows.zip zig-out/release/comdirect-spending-calculator.exe + tar czf zig-out/release/comdirect-spending-calculator-x86_64-linux.tar.gz zig-out/release/comdirect-spending-calculator + +# Create and pack release artifacts +release: + just _build_release + just _pack_release