@sokeai/cli 1.0.82 → 1.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/install.js +1 -1
- package/scripts/release.sh +1 -3
package/package.json
CHANGED
package/scripts/install.js
CHANGED
|
@@ -429,7 +429,7 @@ const binaryName = platform === 'win32' ? 'soke-cli.exe' : 'soke-cli';
|
|
|
429
429
|
const binaryFileName = `soke-cli-${mappedPlatform}-${mappedArch}${platform === 'win32' ? '.exe' : ''}`;
|
|
430
430
|
|
|
431
431
|
// 默认 CDN 二进制源。用户安装时会优先从这里下载,失败后回退 GitHub Releases。
|
|
432
|
-
const DEFAULT_BINARY_HOST = 'https://
|
|
432
|
+
const DEFAULT_BINARY_HOST = 'https://soke-frontendstatic-cdn.soke.cn/soke-cli/releases';
|
|
433
433
|
const GITHUB_RELEASE_HOST = 'https://github.com/sokeai/soke-cli/releases/download';
|
|
434
434
|
|
|
435
435
|
const binDir = path.join(__dirname, '..', 'bin');
|
package/scripts/release.sh
CHANGED
|
@@ -21,11 +21,9 @@ SOURCE_VERSION=$(sed -nE 's/.*var Version = "([^"]+)".*/\1/p' internal/version/c
|
|
|
21
21
|
# CDN_BASE_URL 需要与 scripts/install.js 中的 DEFAULT_BINARY_HOST 使用同一 CDN 域名。
|
|
22
22
|
OSS_BUCKET="oss://jiangben-soke-front-end-static-resources"
|
|
23
23
|
OSS_PREFIX="soke-cli/releases"
|
|
24
|
-
# 显式指定 OSS 地域和 endpoint,避免受到本机 ~/.ossutilconfig 中错误
|
|
25
|
-
# endpoint(例如 oss-oss-cn-hangzhou.aliyuncs.com)的影响。
|
|
26
24
|
OSS_REGION="cn-hangzhou"
|
|
27
25
|
OSS_ENDPOINT="https://oss-cn-hangzhou.aliyuncs.com"
|
|
28
|
-
CDN_BASE_URL="https://
|
|
26
|
+
CDN_BASE_URL="https://soke-frontendstatic-cdn.soke.cn"
|
|
29
27
|
REQUIRE_OSS=true
|
|
30
28
|
|
|
31
29
|
echo -e "${BLUE}========================================${NC}"
|