fix(release): drop stale launcher tui goreleaser target

This commit is contained in:
lxowalle
2026-04-30 21:19:14 +08:00
parent b42af1eac2
commit 4ffbe7a2ed
2 changed files with 21 additions and 46 deletions
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
CONFIG_FILE="${ROOT_DIR}/.goreleaser.yaml"
failed=0
while IFS= read -r main_path; do
main_path="${main_path#./}"
if [ ! -e "${ROOT_DIR}/${main_path}" ]; then
echo "missing goreleaser build main: ${main_path}" >&2
failed=1
fi
done < <(sed -n 's/^[[:space:]]*main:[[:space:]]*//p' "${CONFIG_FILE}")
if [ "${failed}" -ne 0 ]; then
exit 1
fi
echo "all goreleaser build mains exist"