feat: ship configurable lint CLI and Tool v1 bundle
This commit is contained in:
1 parent
f26f6099f2
commit
94c36270fa
16 files changed
+1403
-19
No files matched your search
Executable
+15
@@ -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"
|
||||
Reference in new issue
Block a user