release: add --standalone so the full multi-target pipeline can bypass the CLI publish path
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-11 06:52:05
Commit89829a91
Parents21b3c225
Changed files
release-dist.sh+8−6■■■■■
1 file+8−6
Diff
release-dist.sh+8−6■■■■■
index 818858a..af5cca8 100755
--- a/release-dist.sh
+++ b/release-dist.sh
@@ -37,12 +37,14 @@ cd "$ROOT"
3737 DRY_RUN=0
3838 DO_MACOS=1
3939 DO_MIRROR=1
40+STANDALONE=0
4041 for arg in "$@"; do
4142 case "$arg" in
42- --dry-run) DRY_RUN=1 ;;
43- --no-macos) DO_MACOS=0 ;;
44- --no-mirror) DO_MIRROR=0 ;;
45- -h|--help) sed -n '2,30p' "$0"; exit 0 ;;
43+ --dry-run) DRY_RUN=1 ;;
44+ --no-macos) DO_MACOS=0 ;;
45+ --no-mirror) DO_MIRROR=0 ;;
46+ --standalone) STANDALONE=1 ;;
47+ -h|--help) sed -n '2,30p' "$0"; exit 0 ;;
4648 *) echo "unknown argument: $arg" >&2; exit 2 ;;
4749 esac
4850 done
@@ -63,11 +65,11 @@ die() { printf '\033[31mERROR:\033[0m %s\n' "$1" >&2; exit 1; }
6365 # ---------------------------------------------------------------- 0. preflight
6466 say "0/7 preflight"
6567
66-if command -v scorpiox-cli-botplugin >/dev/null 2>&1; then
68+if [ "$STANDALONE" -eq 0 ] && command -v scorpiox-cli-botplugin >/dev/null 2>&1; then
6769 say "using scorpiox-cli-botplugin publish"
6870 exec scorpiox-cli-botplugin publish "$ROOT"
6971 fi
70-echo " scorpiox-cli-botplugin not installed — running standalone pipeline"
72+echo " running the standalone pipeline (dist + plugingit mirror)"
7173
7274 [ -n "$(git status --porcelain 2>/dev/null)" ] && \
7375 echo " note: working tree is dirty; source.tar.gz comes from the last commit"
7476
release-dist.sh+8−6■■■■■
index 818858a..af5cca8 100755index 818858a..af5cca8 100755
--- a/release-dist.sh--- a/release-dist.sh
+++ b/release-dist.sh+++ b/release-dist.sh
@@ -37,12 +37,14 @@ cd "$ROOT"@@ -37,12 +37,14 @@ cd "$ROOT"
37 DRY_RUN=037 DRY_RUN=0
38 DO_MACOS=138 DO_MACOS=1
39 DO_MIRROR=139 DO_MIRROR=1
40+STANDALONE=0
40 for arg in "$@"; do41 for arg in "$@"; do
41 case "$arg" in42 case "$arg" in
42- --dry-run) DRY_RUN=1 ;;43+ --dry-run) DRY_RUN=1 ;;
43- --no-macos) DO_MACOS=0 ;;44+ --no-macos) DO_MACOS=0 ;;
44- --no-mirror) DO_MIRROR=0 ;;45+ --no-mirror) DO_MIRROR=0 ;;
45- -h|--help) sed -n '2,30p' "$0"; exit 0 ;;46+ --standalone) STANDALONE=1 ;;
47+ -h|--help) sed -n '2,30p' "$0"; exit 0 ;;
46 *) echo "unknown argument: $arg" >&2; exit 2 ;;48 *) echo "unknown argument: $arg" >&2; exit 2 ;;
47 esac49 esac
48 done50 done
@@ -63,11 +65,11 @@ die() { printf '\033[31mERROR:\033[0m %s\n' "$1" >&2; exit 1; }@@ -63,11 +65,11 @@ die() { printf '\033[31mERROR:\033[0m %s\n' "$1" >&2; exit 1; }
63 # ---------------------------------------------------------------- 0. preflight65 # ---------------------------------------------------------------- 0. preflight
64 say "0/7 preflight"66 say "0/7 preflight"
65 67
66-if command -v scorpiox-cli-botplugin >/dev/null 2>&1; then68+if [ "$STANDALONE" -eq 0 ] && command -v scorpiox-cli-botplugin >/dev/null 2>&1; then
67 say "using scorpiox-cli-botplugin publish"69 say "using scorpiox-cli-botplugin publish"
68 exec scorpiox-cli-botplugin publish "$ROOT"70 exec scorpiox-cli-botplugin publish "$ROOT"
69 fi71 fi
70-echo " scorpiox-cli-botplugin not installed — running standalone pipeline"72+echo " running the standalone pipeline (dist + plugingit mirror)"
71 73
72 [ -n "$(git status --porcelain 2>/dev/null)" ] && \74 [ -n "$(git status --porcelain 2>/dev/null)" ] && \
73 echo " note: working tree is dirty; source.tar.gz comes from the last commit"75 echo " note: working tree is dirty; source.tar.gz comes from the last commit"
7476