Skip to content

Commit c0d43b0

Browse files
committed
Update uTools.json
1 parent 7a4c4b0 commit c0d43b0

File tree

1 file changed

+16
-38
lines changed

1 file changed

+16
-38
lines changed

bucket/others/uTools.json

Lines changed: 16 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,45 @@
11
{
2+
"version": "7.0.0",
23
"homepage": "https://u.tools/",
34
"description": "新一代效率工具平台.(Scoop bucket by arch3rpro)",
45
"license": "Unknown",
5-
"version": "5.1.1",
66
"architecture": {
77
"64bit": {
8-
"url": "https://open.u-tools.cn/download/uTools-5.1.1.exe#/dl.7z",
9-
"hash": "281ebe07c89ee73920e3e936aa120a522d50954e53563817bcb186be609507f7",
8+
"url": "https://open.u-tools.cn/download/uTools-7.0.0.exe#/uTools.7z",
9+
"hash": "7868f26779e6a0aeb17a89a3f72df9e3fe0557732b24e90df6b1b6160c0fd6aa",
1010
"installer": {
11-
"script": "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-64.7z\" \"$dir\""
11+
"script": "7z x $original_dir/PLUGINSDIR/app-64.7z -o\"$original_dir\\utools\""
1212
}
1313
},
1414
"32bit": {
15-
"url": "https://open.u-tools.cn/download/uTools-5.1.1-ia32.exe#/dl.7z",
16-
"hash": "d43463b8fcb01d88bf543adf041e67e7e780d108ef787736e910c94d89c3ca71",
15+
"url": "https://open.u-tools.cn/download/uTools-7.0.0-ia32.exe#/uTools.7z",
16+
"hash": "94c068d064a74132c405b457b84a0f3849fd09ebfb5142642e9c622eb2b4ffb1",
1717
"installer": {
18-
"script": "Expand-7zipArchive \"$dir\\`$PLUGINSDIR\\app-32.7z\" \"$dir\""
18+
"script": "7z x $original_dir/PLUGINSDIR/app-32.7z -o\"$original_dir\\utools\""
1919
}
2020
}
2121
},
22-
"post_install": [
23-
"Remove-Item -Recurse -Force \"$dir\\`$PLUGINSDIR\"",
24-
"$runtimeCache = \"$env:APPDATA\\uTools\"",
25-
"$runtimeCachePersist = \"$persist_dir\\data\"",
26-
"if (Test-Path $runtimeCachePersist) {",
27-
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
28-
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
29-
"} else {",
30-
" if (Test-Path $runtimeCache) {",
31-
" Move-Item $runtimeCache $runtimeCachePersist -Force",
32-
" New-Item -Type Junction -Path $runtimeCache -Target $runtimeCachePersist | Out-Null",
33-
" }",
34-
"}"
35-
],
36-
"uninstaller": {
37-
"script": [
38-
"$runtimeCache = \"$env:APPDATA\\uTools\"",
39-
"$runtimeCachePersist = \"$persist_dir\\data\"",
40-
"if (!(Test-Path $runtimeCachePersist)) {",
41-
" Move-Item $runtimeCache $runtimeCachePersist -Force",
42-
"} else {",
43-
" Remove-Item $runtimeCache -Force -Recurse -ErrorAction SilentlyContinue",
44-
"}"
45-
]
46-
},
22+
"extract_dir": "$PLUGINSDIR",
23+
"extract_to": "PLUGINSDIR",
24+
"post_install": "Remove-Item -RECURSE $original_dir/PLUGINSDIR",
25+
"bin": "utools\\uTools.exe",
4726
"shortcuts": [
4827
[
49-
"uTools.exe",
28+
"utools\\uTools.exe",
5029
"uTools"
5130
]
5231
],
53-
"persist": "data",
5432
"checkver": {
55-
"url": "https://u.tools/",
56-
"regex": "uTools-([\\d.]+)\\.exe"
33+
"url": "https://u.tools/download/",
34+
"regex": "uTools-(\\d+[\\.\\d]+)\\.exe"
5735
},
5836
"autoupdate": {
5937
"architecture": {
6038
"64bit": {
61-
"url": "https://open.u-tools.cn/download/uTools-$version.exe#/dl.7z"
39+
"url": "https://open.u-tools.cn/download/uTools-$version.exe#/uTools.7z"
6240
},
6341
"32bit": {
64-
"url": "https://open.u-tools.cn/download/uTools-$version-ia32.exe#/dl.7z"
42+
"url": "https://open.u-tools.cn/download/uTools-$version-ia32.exe#/uTools.7z"
6543
}
6644
}
6745
}

0 commit comments

Comments
 (0)