fix(release): upload with tar-over-ssh instead of scp '.', set +x on artifacts
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-11 01:19:37
Commitea2f48f5
Parentsff8ab973
Changed files
release-dist.sh+4−1■■■■■
1 file+4−1
Diff
release-dist.sh+4−1■■■■■
index 8d43082..ade6e0f 100755
--- a/release-dist.sh
+++ b/release-dist.sh
@@ -283,7 +283,10 @@ REMOTE_DIR="$DIST_PATH/bot-plugins/$SLUG/$VERSION"
283283
284284 "${SSH[@]}" "$DIST_HOST" "mkdir -p '$REMOTE_DIR' '$DIST_PATH/bot-plugins/$SLUG'" \
285285 || die "cannot create $REMOTE_DIR on $DIST_HOST"
286-"${SCP[@]}" -r "$PKG/." "$DIST_HOST:$REMOTE_DIR/" || die "upload failed"
286+# tar-over-ssh: one transfer, preserves modes, and avoids OpenSSH 9's
287+# refusal to scp a bare "." source.
288+tar -czf - -C "$PKG" . \
289+ | "${SSH[@]}" "$DIST_HOST" "tar -xzf - -C '$REMOTE_DIR'" || die "upload failed"
287290 echo " uploaded to $DIST_HOST:$REMOTE_DIR"
288291
289292 # latest.json = copy of this version's manifest
290293
release-dist.sh+4−1■■■■■
index 8d43082..ade6e0f 100755index 8d43082..ade6e0f 100755
--- a/release-dist.sh--- a/release-dist.sh
+++ b/release-dist.sh+++ b/release-dist.sh
@@ -283,7 +283,10 @@ REMOTE_DIR="$DIST_PATH/bot-plugins/$SLUG/$VERSION"@@ -283,7 +283,10 @@ REMOTE_DIR="$DIST_PATH/bot-plugins/$SLUG/$VERSION"
283 283
284 "${SSH[@]}" "$DIST_HOST" "mkdir -p '$REMOTE_DIR' '$DIST_PATH/bot-plugins/$SLUG'" \284 "${SSH[@]}" "$DIST_HOST" "mkdir -p '$REMOTE_DIR' '$DIST_PATH/bot-plugins/$SLUG'" \
285 || die "cannot create $REMOTE_DIR on $DIST_HOST"285 || die "cannot create $REMOTE_DIR on $DIST_HOST"
286-"${SCP[@]}" -r "$PKG/." "$DIST_HOST:$REMOTE_DIR/" || die "upload failed"286+# tar-over-ssh: one transfer, preserves modes, and avoids OpenSSH 9's
287+# refusal to scp a bare "." source.
288+tar -czf - -C "$PKG" . \
289+ | "${SSH[@]}" "$DIST_HOST" "tar -xzf - -C '$REMOTE_DIR'" || die "upload failed"
287 echo " uploaded to $DIST_HOST:$REMOTE_DIR"290 echo " uploaded to $DIST_HOST:$REMOTE_DIR"
288 291
289 # latest.json = copy of this version's manifest292 # latest.json = copy of this version's manifest
290293