From e966a83220eb7b7657da20c1d94d5cbc6d015a04 Mon Sep 17 00:00:00 2001 From: Christian Visintin Date: Tue, 1 Sep 2026 12:42:06 +0200 Subject: [PATCH] chore(just): add `run_signed` script --- Justfile | 1 + just/run.just | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 just/run.just diff --git a/Justfile b/Justfile index 833bb8f..bf25f72 100644 --- a/Justfile +++ b/Justfile @@ -2,6 +2,7 @@ import "./just/build.just" import "./just/changelog.just" import "./just/code_check.just" import "./just/publish.just" +import "./just/run.just" import "./just/site.just" import "./just/test.just" diff --git a/just/run.just b/just/run.just new file mode 100644 index 0000000..34a61f0 --- /dev/null +++ b/just/run.just @@ -0,0 +1,13 @@ +[group('run')] +run *args: + @set -m; cargo run --bin termscp -- {{ args }} + +# Build, sign, and run the macOS CLI binary with a stable development identity +# Job control gives smista its own foreground process group, so Ctrl-C reaches it +# without also interrupting just. +[group('run')] +run_signed *args: + @test "$(uname -s)" = "Darwin" || (echo "run_signed is only supported on macOS." >&2; exit 1) + cargo build --bin termscp + codesign --force --sign "${TERMSCP_CODESIGN_IDENTITY:-Apple Development}" target/debug/termscp + @set -m; target/debug/termscp {{ args }}