feat: ship configurable lint CLI and Tool v1 bundle

This commit is contained in:
cflmy committed 2026-11-23 18:55:58 +08:00
1 parent f26f6099f2
commit 94c36270fa
16 files changed
+1403 -19

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
DEST=${1:-"$ROOT/.cache/tool-bundle"}
export CARGO_HOME=${CARGO_HOME:-"$ROOT/.cache/cargo-home"}
export CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$ROOT/.cache/marqdo-lint-release-target"}
export TMPDIR=${TMPDIR:-"$ROOT/.cache/tmp"}
mkdir -p "$TMPDIR" "$DEST/bin"
cargo build --locked --release --manifest-path "$ROOT/Cargo.toml"
install -m 755 "$CARGO_TARGET_DIR/release/marqdo-lint" "$DEST/bin/marqdo-lint"
cp "$ROOT/tool.json" "$DEST/tool.json"
sha256sum "$DEST/bin/marqdo-lint"
printf 'Tool bundle: %s\n' "$DEST"