Resolve-LatestVersion referenced $LatestUrl (lines 185/197) but the variable was never defined, so on the default GitHub path both Invoke-WebRequest calls failed with a null Uri. With $ErrorActionPreference = "Stop" the script then hit Write-Err and exit 1 — closing freshly-launched PowerShell windows instantly (the reported "闪退"). Every user on the default `latest` path was affected; the Bash installer was unaffected because it inlines the URL. Define $LatestUrl = "https://github.com/$Repo/releases/latest", mirroring the Bash installer. Verified end-to-end with pwsh 7.5: the script now resolves the latest tag, downloads, checksum-verifies and installs.
Go Bootstrap Scripts
These repo-local entrypoints are the supported shell entrypoints for building, testing, packaging, and policy checks.
make build: build thedwsCLI fromcmdmake test: rungo test ./...make lint: run formatting checks and requiredgolangci-lintmake fmt: format Go source files undercmd/,internal/, andtest/make package: build all release artifacts locally viagoreleaser --snapshotmake release: build and publish a release viagoreleaser
Script groups:
- Root installers:
./scripts/install.sh,./scripts/install.ps1,./scripts/install-skills.sh,./scripts/install-devapp.sh - Dev helpers:
./scripts/dev/build.sh,./scripts/dev/lint.sh,./scripts/dev/ci-local.sh,./scripts/dev/run-mock-e2e.sh,./scripts/dev/coverage.sh - Policy checks:
./scripts/policy/check-generated-drift.sh,./scripts/policy/check-command-surface.sh,./scripts/policy/check-open-source-assets.sh - Release helpers:
./scripts/release/post-goreleaser.sh,./scripts/release/verify-package-managers.sh,./scripts/release/publish-homebrew-formula.sh