From 2921edb401743aee28dcecf814ab13f72c3a807b Mon Sep 17 00:00:00 2001 From: npc0-hue Date: Tue, 4 Aug 2026 00:12:38 +0800 Subject: [PATCH] Set generated run release URL --- platform/README.md | 2 +- platform/service/distributions.go | 2 +- scripts/local-debug/env.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/README.md b/platform/README.md index 110505c..b0a90f9 100644 --- a/platform/README.md +++ b/platform/README.md @@ -59,7 +59,7 @@ Runtime configuration: - `PLATFORM_BUILDER_SOURCE_DIR`: read-only Run source snapshot containing `go.mod`; this is required for builder readiness. - `PLATFORM_BUILDER_WORKSPACE_DIR`: private per-plugin/per-job build workspace, default `/distribution-builds`. - `PLATFORM_BUILDER_TIMEOUT_SECONDS`: positive build deadline, default `1800`. -- `PLATFORM_RUN_RELEASE_URL`: public platform URL embedded into generated components, default `https://scum.npc0.com`. +- `PLATFORM_RUN_RELEASE_URL`: public platform URL embedded into generated components, default `https://scum.npc0.com/`. Build the dedicated toolchain image before enabling distribution generation: diff --git a/platform/service/distributions.go b/platform/service/distributions.go index 86a38eb..fc45d76 100644 --- a/platform/service/distributions.go +++ b/platform/service/distributions.go @@ -1140,7 +1140,7 @@ func runReleasePlatformURL() string { if value := strings.TrimSpace(os.Getenv("PLATFORM_RUN_RELEASE_URL")); value != "" { return value } - return "https://scum.npc0.com" + return "https://scum.npc0.com/" } func distributionID(prefix string, parts ...interface{}) string { diff --git a/scripts/local-debug/env.sh b/scripts/local-debug/env.sh index 6dae030..0dad325 100755 --- a/scripts/local-debug/env.sh +++ b/scripts/local-debug/env.sh @@ -25,7 +25,7 @@ export PLATFORM_BOOTSTRAP_ADMIN_EMAIL="${PLATFORM_BOOTSTRAP_ADMIN_EMAIL:-operato export PLATFORM_BOOTSTRAP_ADMIN_PASSWORD="${PLATFORM_BOOTSTRAP_ADMIN_PASSWORD:-operator-local}" export PLATFORM_SECRET_ENVELOPE_KEY="${PLATFORM_SECRET_ENVELOPE_KEY:-local-debug-secret-envelope-key-change-me}" export PLATFORM_AI_PROVIDER_MODE="${PLATFORM_AI_PROVIDER_MODE:-mock}" -export PLATFORM_RUN_RELEASE_URL="${PLATFORM_RUN_RELEASE_URL:-http://127.0.0.1:$LOCAL_DEBUG_PLATFORM_PORT}" +export PLATFORM_RUN_RELEASE_URL="${PLATFORM_RUN_RELEASE_URL:-https://scum.npc0.com/}" export RUN_SOURCE_DIR="${RUN_SOURCE_DIR:-${RUN_REPO_DIR:-$LOCAL_DEBUG_ROOT_DIR/run}}" export RUN_REPO_DIR="$RUN_SOURCE_DIR"