| index 818858a..af5cca8 100755 | | index 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=0 | 37 | DRY_RUN=0 |
| 38 | DO_MACOS=1 | 38 | DO_MACOS=1 |
| 39 | DO_MIRROR=1 | 39 | DO_MIRROR=1 |
| | 40 | +STANDALONE=0 |
| 40 | for arg in "$@"; do | 41 | for arg in "$@"; do |
| 41 | case "$arg" in | 42 | 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 | esac | 49 | esac |
| 48 | done | 50 | 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. preflight | 65 | # ---------------------------------------------------------------- 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; then | 68 | +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 | fi | 71 | 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" |
| 74 | | 76 | |