fix: install.sh downloads binary from JP01 Gitea releases
This commit is contained in:
+3
-6
@@ -27,7 +27,7 @@ DEFAULT_ACTION="install"
|
||||
DEFAULT_RELEASE_VERSION="latest"
|
||||
DEFAULT_LOG_LEVEL="info"
|
||||
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}"
|
||||
MODE=""
|
||||
@@ -482,11 +482,8 @@ select_binary_source() {
|
||||
|
||||
resolve_download_url() {
|
||||
local artifact="$1"
|
||||
if [ "$RELEASE_VERSION" = "latest" ]; then
|
||||
DOWNLOAD_URL="${DEFAULT_DOWNLOAD_BASE}/latest/download/${artifact}"
|
||||
else
|
||||
DOWNLOAD_URL="${DEFAULT_DOWNLOAD_BASE}/download/${RELEASE_VERSION}/${artifact}"
|
||||
fi
|
||||
# Gitea release download URL: {base}/{tag}/{file}
|
||||
DOWNLOAD_URL="${DEFAULT_DOWNLOAD_BASE}/${RELEASE_VERSION}/${artifact}"
|
||||
}
|
||||
|
||||
stage_binary() {
|
||||
|
||||
Reference in New Issue
Block a user