/
Writeathon.json
41 lines (41 loc) · 1.77 KB
/
Writeathon.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
{
"version": "1.0.7",
"description": "一款写作产品,为创作者提供丰富的灵感和完善的流程。A product for writing, providing the flow and inspiration creators need to make content.",
"homepage": "https://www.writeathon.cn/",
"license": "Unknown",
"url": "https://cdn.writeathon.cn/app/release/windows/writeathon-1.0.7.exe#/_installer_.exe",
"hash": "a4b834e10fc8167049a2f5551e0a4d462628269244bda04166d5a77454774759",
"shortcuts": [
[
"writeathon.exe",
"Writeathon"
]
],
"pre_install": [
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"$path_exe=\"$dir\\_installer_.exe\"",
"& $path_exe /VerySilent /Dir=\"$dir\"",
"$core_exe=\"$dir\\Writeathon.exe\"",
"sleep_install $core_exe",
"persist -dir @(\"$user_AppData\\com.example\\writeathon_app\") @(\"$persist_dir\\com.example\\writeathon_app\")",
"clean_redundant_files @($path_exe,\"$admin_apps_lnk\\Writeathon.lnk\")",
"remove_app_lnk \"Writeathon.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\\com.example\\writeathon_app\")",
"$ui_exe=\"$dir\\unins000.exe\"",
"try{ & $ui_exe /VerySilent }catch{}",
"sleep_uninstall $ui_exe",
"remove_files @(\"$desktop\\Writeathon.lnk\")"
],
"checkver": {
"url": "https://www.writeathon.cn/desktop",
"regex": "writeathon-([\\d\\.]+).exe"
},
"autoupdate": {
"url": "https://cdn.writeathon.cn/app/release/windows/writeathon-$version.exe#/_installer_.exe"
}
}