diff --git a/.gitea/workflows/release-tool.yml b/.gitea/workflows/release-tool.yml index 261f776..51bf956 100644 --- a/.gitea/workflows/release-tool.yml +++ b/.gitea/workflows/release-tool.yml @@ -23,7 +23,7 @@ jobs: git reset --hard "${TAG_NAME}" git clean -fd - - name: Build nwn-tool + - name: Build sow-toolkit run: | set -euo pipefail CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}" @@ -38,15 +38,15 @@ jobs: set -euo pipefail CHECKOUT_PATH="${CHECKOUT_PATH:-/home/ubuntu/tools-checkout}" cd "${CHECKOUT_PATH}" - binary="tools/nwn-tool" + binary="tools/sow-toolkit" if [[ ! -x "${binary}" ]]; then echo "Missing built tool: ${binary}" exit 1 fi - archive="/tmp/nwn-tool-linux-amd64-${TAG_NAME}.tar.gz" - tar -czf "${archive}" -C tools nwn-tool + archive="/tmp/sow-toolkit-linux-amd64-${TAG_NAME}.tar.gz" + tar -czf "${archive}" -C tools sow-toolkit echo "archive=${archive}" >> "$GITHUB_OUTPUT" - echo "asset_name=nwn-tool-linux-amd64.tar.gz" >> "$GITHUB_OUTPUT" + echo "asset_name=sow-toolkit-linux-amd64.tar.gz" >> "$GITHUB_OUTPUT" echo "tag=${TAG_NAME}" >> "$GITHUB_OUTPUT" - name: Create release and upload artifact @@ -72,7 +72,7 @@ jobs: RELEASE_ID=$(jq -r '.id' "${RESP_FILE}") else BODY=$(jq -n --arg t "${TAG_NAME}" \ - '{tag_name: $t, name: $t, body: "nwn-tool binary release built by Gitea Actions."}') + '{tag_name: $t, name: $t, body: "sow-toolkit binary release built by Gitea Actions."}') CODE=$(curl -sS -o "${RESP_FILE}" -w "%{http_code}" "${AUTH[@]}" \ -X POST -H "Content-Type: application/json" \ -d "${BODY}" \ @@ -100,7 +100,7 @@ jobs: env: TAG_NAME: ${{ github.ref_name }} run: | - rm -f "/tmp/nwn-tool-linux-amd64-${TAG_NAME}.tar.gz" /tmp/gitea-release.json + rm -f "/tmp/sow-toolkit-linux-amd64-${TAG_NAME}.tar.gz" /tmp/gitea-release.json - name: Prune old releases (keep latest 1) env: diff --git a/.gitignore b/.gitignore index 3b6dea0..58fa116 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ .cache/ # Built tool output -/tools/nwn-tool +/tools/sow-toolkit # OS/editor noise .DS_Store diff --git a/README.md b/README.md index 9619222..eeba58e 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ Shared NWN build tooling for Shadows Over Westgate. -This repository owns the Go-based `nwn-tool` binary used by the separate module and assets repositories. +This repository owns the Go-based `sow-toolkit` binary used by the separate module and assets repositories. ## Build -Build the development binary into `tools/nwn-tool`: +Build the development binary into `tools/sow-toolkit`: ```bash ./build-tool.sh @@ -33,12 +33,12 @@ tools/ built development binary output ## Intended Consumers -- `sow-module` uses `nwn-tool` for `build-module`, `extract`, `validate`, `compare`, and `apply-hak-manifest` -- `sow-assets` uses `nwn-tool` for `build-haks` and validation +- `sow-module` uses `sow-toolkit` for `build-module`, `extract`, `validate`, `compare`, and `apply-hak-manifest` +- `sow-assets` uses `sow-toolkit` for `build-haks` and validation -During development, sibling repositories can point at `../sow-tools/tools/nwn-tool`. For pinned releases, each consumer repo can instead carry its own copy at `tools/nwn-tool`. +During development, sibling repositories can point at `../sow-tools/tools/sow-toolkit`. For pinned releases, each consumer repo can instead carry its own copy at `tools/sow-toolkit`. ## Release Automation -This repo publishes a Linux `nwn-tool` release artifact through Gitea Actions as `nwn-tool-linux-amd64.tar.gz`. Consumer repos can fetch that binary into their local `tools/` directory with their `install-tool.sh` helper. +This repo publishes a Linux `sow-toolkit` release artifact through Gitea Actions as `sow-toolkit-linux-amd64.tar.gz`. Consumer repos can fetch that binary into their local `tools/` directory with their `install-tool.sh` helper. diff --git a/build-tool.sh b/build-tool.sh index 0321234..22abccd 100755 --- a/build-tool.sh +++ b/build-tool.sh @@ -3,4 +3,4 @@ set -eu cd "$(dirname "$0")" mkdir -p tools .cache/go-build -GOCACHE="${PWD}/.cache/go-build" go build -o ./tools/nwn-tool ./cmd/nwn-tool +GOCACHE="${PWD}/.cache/go-build" go build -o ./tools/sow-toolkit ./cmd/nwn-tool diff --git a/tools/README.md b/tools/README.md index 3a2e589..f660c68 100644 --- a/tools/README.md +++ b/tools/README.md @@ -1 +1 @@ -Place the built `nwn-tool` binary here for sibling repositories to consume during development. +Place the built `sow-toolkit` binary here for sibling repositories to consume during development or for release packaging.