Skip to content

Commit 205407c

Browse files
committed
fix(qwen-code.json): 更新安装配置和依赖管理
修改安装脚本使用bun替代nodejs
1 parent fc1278f commit 205407c

File tree

1 file changed

+34
-21
lines changed

1 file changed

+34
-21
lines changed

bucket/qwen-code.json

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,37 @@
11
{
2-
"version": "0.6.0",
3-
"description": "(Scoop bucket by arch3rpro) An open-source AI agent that lives in your terminal.",
4-
"homepage": "https://qwenlm.github.io",
5-
"license": "Apache-2.0",
6-
"suggest": {
7-
"nodejs": "main/nodejs-lts"
8-
},
9-
"url": "https://github.com/QwenLM/qwen-code/releases/download/v0.6.0/cli.js",
10-
"hash": "713c7a4747447013833476d533f7ab1573b90d8e4b75f507a93fd2b2112d9bf1",
11-
"bin": [
12-
[
13-
"node",
14-
"qwen",
15-
"$dir\\cli.js"
16-
]
17-
],
18-
"checkver": {
19-
"github": "https://github.com/QwenLM/qwen-code"
20-
},
21-
"autoupdate": {
22-
"url": "https://github.com/QwenLM/qwen-code/releases/download/v$version/cli.js"
2+
"version": "0.6.0",
3+
"description": "(Scoop bucket by arch3rpro) An open-source AI agent that lives in your terminal",
4+
"homepage": "https://github.com/QwenLM/qwen-code",
5+
"license": "Apache-2.0",
6+
"bin": [
7+
[
8+
"node_modules\\.bin\\qwen.exe",
9+
"qwen"
10+
]
11+
],
12+
"installer": {
13+
"script": "pushd $dir; bun add --bun @qwen-code/[email protected]; popd"
14+
},
15+
"pre_install": [
16+
"New-Item -Path $persist_dir -ItemType Directory -Force | Out-Null",
17+
"if (!(Test-Path -Path $persist_dir\\system-defaults.json)) { New-Item -Path $persist_dir\\system-defaults.json -ItemType File -Value '{}' -Force | Out-Null }"
18+
],
19+
"uninstaller": {
20+
"script": "pushd $dir; bun rm @qwen-code/qwen-code; popd"
21+
},
22+
"depends": [
23+
"bun"
24+
],
25+
"env_set": {
26+
"QWEN_CODE_SYSTEM_DEFAULTS_PATH": "$persist_dir\\system-defaults.json"
27+
},
28+
"checkver": {
29+
"url": "https://github.com/QwenLM/qwen-code/tags",
30+
"regex": "/v([\\d.]+)\"(?!-)"
31+
},
32+
"autoupdate": {
33+
"installer": {
34+
"script": "pushd $dir; bun add --bun @qwen-code/qwen-code@$version; popd"
2335
}
36+
}
2437
}

0 commit comments

Comments
 (0)