#!/usr/bin/env bash # Build the installable marqdo web Tool bundle. set -eu cd "$(dirname "$0")/.." cargo build --release --locked dist="$PWD/dist/marqdo-web-preview" rm -rf "$dist" mkdir -p "$dist/bin" cp target/release/marqdo-web-preview "$dist/bin/marqdo-web-preview" chmod 0755 "$dist/bin/marqdo-web-preview" cat > "$dist/tool.json" <<'JSON' { "schema": "marqdo.cli-tool", "schema_version": 1, "name": "cflmy.marqdo-web-preview", "version": "0.1.0", "command": "web", "entrypoint": "bin/marqdo-web-preview", "requires": { "api_revision": 1, "analysis": 3 } } JSON echo "tool bundle: $dist"