@sokeai/cli 1.0.54 → 1.0.56
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/build-binaries.sh +1 -1
- package/scripts/install.js +1 -1
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ VERSION=$(node -p "require('./package.json').version")
|
|
|
16
16
|
echo -e "${GREEN}开始编译 soke-cli v${VERSION}${NC}"
|
|
17
17
|
|
|
18
18
|
# 编译参数
|
|
19
|
-
LDFLAGS="-s -w -X
|
|
19
|
+
LDFLAGS="-s -w -X codeup.aliyun.com/5edbc121d1d1abe63b55f1c7/soke/soke-cli/internal/version.Version=${VERSION}"
|
|
20
20
|
|
|
21
21
|
# 创建输出目录
|
|
22
22
|
BIN_DIR="bin"
|
package/scripts/install.js
CHANGED
|
@@ -428,7 +428,7 @@ const binaryName = platform === 'win32' ? 'soke-cli.exe' : 'soke-cli';
|
|
|
428
428
|
const binaryFileName = `soke-cli-${mappedPlatform}-${mappedArch}${platform === 'win32' ? '.exe' : ''}`;
|
|
429
429
|
|
|
430
430
|
// GitHub Releases 下载地址
|
|
431
|
-
const downloadURL = `https://github.com/
|
|
431
|
+
const downloadURL = `https://github.com/sokeai/soke-cli/releases/download/v${version}/${binaryFileName}`;
|
|
432
432
|
|
|
433
433
|
const binDir = path.join(__dirname, '..', 'bin');
|
|
434
434
|
const binaryPath = path.join(binDir, binaryName);
|