@aiyiran/myclaw 1.0.67 → 1.0.76
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 +2 -3
- package/publish.sh +7 -7
- package/wsl2.js +8 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiyiran/myclaw",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.76",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,8 +8,7 @@
|
|
|
8
8
|
"mc": "index.js"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
12
|
-
"postinstall": "node index.js prepare"
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
12
|
},
|
|
14
13
|
"keywords": [],
|
|
15
14
|
"author": "",
|
package/publish.sh
CHANGED
|
@@ -18,13 +18,13 @@ fi
|
|
|
18
18
|
echo "📈 增加 Patch 版本号..."
|
|
19
19
|
npm version patch
|
|
20
20
|
|
|
21
|
-
# 4.
|
|
22
|
-
echo "
|
|
23
|
-
git push origin main
|
|
24
|
-
git push origin --tags
|
|
25
|
-
|
|
26
|
-
# 5. 发布到 npm
|
|
27
|
-
echo "🚀 发布到 npm 仓库..."
|
|
21
|
+
# 4. 发布到 npm
|
|
22
|
+
echo "🚀 优先发布到 npm 仓库..."
|
|
28
23
|
npm publish
|
|
29
24
|
|
|
25
|
+
# 5. 推送代码和 Tag 到 GitHub
|
|
26
|
+
echo "☁️ 推送代码和版本 Tag 到 GitHub..."
|
|
27
|
+
git push origin main || echo "⚠️ Git 推送失败 (网络问题),但不影响 npm 发布!请后续手动检查。"
|
|
28
|
+
git push origin --tags || true
|
|
29
|
+
|
|
30
30
|
echo "🎉 发布流执行完成!"
|
package/wsl2.js
CHANGED
|
@@ -131,18 +131,14 @@ if ($resolved) {
|
|
|
131
131
|
if ($userInput) {
|
|
132
132
|
Write-Host ' 将改为从网络下载...'
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
throw '下载失败'
|
|
143
|
-
}
|
|
144
|
-
} else {
|
|
145
|
-
Write-Host ' 使用上次缓存的文件'
|
|
134
|
+
Write-Host ' 正在从网络下载...'
|
|
135
|
+
try {
|
|
136
|
+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
137
|
+
Invoke-WebRequest -Uri '${cdnUrl}' -OutFile ${destVar} -UseBasicParsing
|
|
138
|
+
Write-Host ' 下载完成!'
|
|
139
|
+
} catch {
|
|
140
|
+
Write-Host ' [失败] 下载失败,请检查网络后重试 myclaw wsl2'
|
|
141
|
+
throw '下载失败'
|
|
146
142
|
}
|
|
147
143
|
}
|
|
148
144
|
`;
|