fix: install.sh downloads binary from JP01 Gitea releases
CI / Test (push) Has been cancelled
CI / Build (amd64, linux) (push) Has been cancelled
CI / Build (arm64, linux) (push) Has been cancelled
CI / Build & Push Docker Image (push) Has been cancelled
CI / Release (push) Has been cancelled

This commit is contained in:
2026-06-18 15:34:01 +09:00
parent fce60b8ad3
commit 1924a56b13
+3 -6
View File
@@ -27,7 +27,7 @@ DEFAULT_ACTION="install"
DEFAULT_RELEASE_VERSION="latest" DEFAULT_RELEASE_VERSION="latest"
DEFAULT_LOG_LEVEL="info" DEFAULT_LOG_LEVEL="info"
DEFAULT_KERNEL_LOG_LEVEL="warn" DEFAULT_KERNEL_LOG_LEVEL="warn"
DEFAULT_DOWNLOAD_BASE="https://github.com/cedar2025/xboard-node/releases" DEFAULT_DOWNLOAD_BASE="http://103.112.1.141:3000/will/xboard-node/releases/download"
ACTION="${DEFAULT_ACTION}" ACTION="${DEFAULT_ACTION}"
MODE="" MODE=""
@@ -482,11 +482,8 @@ select_binary_source() {
resolve_download_url() { resolve_download_url() {
local artifact="$1" local artifact="$1"
if [ "$RELEASE_VERSION" = "latest" ]; then # Gitea release download URL: {base}/{tag}/{file}
DOWNLOAD_URL="${DEFAULT_DOWNLOAD_BASE}/latest/download/${artifact}" DOWNLOAD_URL="${DEFAULT_DOWNLOAD_BASE}/${RELEASE_VERSION}/${artifact}"
else
DOWNLOAD_URL="${DEFAULT_DOWNLOAD_BASE}/download/${RELEASE_VERSION}/${artifact}"
fi
} }
stage_binary() { stage_binary() {