|
1 | 1 | { |
| 2 | + "version": "7.0.0", |
2 | 3 | "homepage": "https://u.tools/", |
3 | 4 | "description": "新一代效率工具平台.(Scoop bucket by arch3rpro)", |
4 | 5 | "license": "Unknown", |
5 | | - "version": "5.1.1", |
6 | 6 | "architecture": { |
7 | 7 | "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", |
10 | 10 | "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\"" |
12 | 12 | } |
13 | 13 | }, |
14 | 14 | "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", |
17 | 17 | "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\"" |
19 | 19 | } |
20 | 20 | } |
21 | 21 | }, |
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", |
47 | 26 | "shortcuts": [ |
48 | 27 | [ |
49 | | - "uTools.exe", |
| 28 | + "utools\\uTools.exe", |
50 | 29 | "uTools" |
51 | 30 | ] |
52 | 31 | ], |
53 | | - "persist": "data", |
54 | 32 | "checkver": { |
55 | | - "url": "https://u.tools/", |
56 | | - "regex": "uTools-([\\d.]+)\\.exe" |
| 33 | + "url": "https://u.tools/download/", |
| 34 | + "regex": "uTools-(\\d+[\\.\\d]+)\\.exe" |
57 | 35 | }, |
58 | 36 | "autoupdate": { |
59 | 37 | "architecture": { |
60 | 38 | "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" |
62 | 40 | }, |
63 | 41 | "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" |
65 | 43 | } |
66 | 44 | } |
67 | 45 | } |
|
0 commit comments