/
Widgets.json
50 lines (50 loc) · 2.08 KB
/
Widgets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"version": "24.5.2",
"description": "功能强大、符合人体工程学的 Windows 桌面组件系统,使用 Vue 构建。Desktop widgets for windows. built with vue3.",
"homepage": "https://github.com/widget-js/widgets",
"license": {
"identifier": "GNU General Public License v2.0",
"url": "https://github.com/widget-js/widgets/blob/master/LICENSE"
},
"url": "https://widget-fun.oss-cn-hangzhou.aliyuncs.com/version/installer.exe",
"hash": "310cf607023f48d3d18cfb50f1be2941e6c74a6a1e1ee4c274cdf3054aaacd1b",
"shortcuts": [
[
"Widgets.exe",
"桌面组件"
]
],
"pre_install": [
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"$path_exe=\"$dir\\installer.exe\"",
"& $path_exe /S /D=$dir",
"$core_exe=\"$dir\\Widgets.exe\"",
"sleep_install $core_exe",
"persist -dir @(\"$user_AppData\\app\") @(\"$persist_dir\\app\")",
"clean_redundant_files @($path_exe,\"$apps_lnk\\桌面组件.lnk\")",
"remove_app_lnk @(\"桌面组件.lnk\")"
],
"pre_uninstall": [
"$bucket=(scoop bucket list | where-Object { $_.Source -match '(gitee|github).com/abgox/abgo_bucket'})[0].Name",
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"stop_process $false",
"remove_files @(\"$user_AppData\\app\")",
"$ui_exe=\"$dir\\Uninstall Widgets.exe\"",
"try{ & $ui_exe /S }catch{}",
"sleep_uninstall $ui_exe",
"remove_files @(\"$user_Documents\\Widget\",\"$user_LocalAppData\\app-updater\")"
],
"checkver": {
"script": [
"$dl_url='https://widget-fun.oss-cn-hangzhou.aliyuncs.com/version/installer.exe'",
"$out_path='Widgets-' + (New-Guid).Guid + '.exe'",
"Invoke-WebRequest -Uri $dl_url -OutFile $out_path",
"(Get-Item $out_path).VersionInfo.FileVersion",
"Remove-Item $out_path -Force"
],
"regex": "([\\d\\.]+)"
},
"autoupdate": {
"url": "https://widget-fun.oss-cn-hangzhou.aliyuncs.com/version/installer.exe"
}
}