From e314895b070a9f25288cd52d6c693643741ede95 Mon Sep 17 00:00:00 2001 From: Max Novich Date: Mon, 25 Nov 2024 15:49:20 -0800 Subject: [PATCH] [chore]: add Just for build script modification (#338) --- Justfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Justfile diff --git a/Justfile b/Justfile new file mode 100644 index 00000000..8da11b81 --- /dev/null +++ b/Justfile @@ -0,0 +1,17 @@ +# Justfile + +# Default release command +release: + @echo "Building release version..." + cargo build --release + @just copy-binary + +# Copy binary command +copy-binary: + @if [ -f ./target/release/goosed ]; then \ + echo "Copying goosed binary to ui/desktop/src/bin..."; \ + cp ./target/release/goosed ./ui/desktop/src/bin/; \ + else \ + echo "Release binary not found."; \ + exit 1; \ + fi