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 }}