/
Pot.json
75 lines (75 loc) · 3.62 KB
/
Pot.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"version": "2.7.10",
"description": "一个跨平台的划词翻译和OCR软件。A cross-platform software for text translation and recognition.",
"homepage": "https://pot-app.com/",
"license": {
"identifier": "GNU General Public License v3.0",
"url": "https://github.com/pot-app/pot-desktop/blob/master/LICENSE"
},
"architecture": {
"64bit": {
"url": "https://github.com/pot-app/pot-desktop/releases/download/2.7.10/pot_2.7.10_x64-setup.exe#/_installer_.exe",
"hash": "de0329764e9e87ee11a1bba1bc5efd2783bad2970b740cc57b057536f59594cb"
},
"32bit": {
"url": "https://github.com/pot-app/pot-desktop/releases/download/2.7.10/pot_2.7.10_x86-setup.exe#/_installer_.exe",
"hash": "f5dfb8d6c95fe13de99bcf619af93c0f71f61d8c41aee049a3ba583116594810"
},
"arm64": {
"url": "https://github.com/pot-app/pot-desktop/releases/download/2.7.10/pot_2.7.10_arm64-setup.exe#/_installer_.exe",
"hash": "218ada583d8eb3114021663d35788a983942dba62425efb51f1303ae7473ec8c"
}
},
"shortcuts": [
[
"pot.exe",
"pot"
]
],
"pre_install": [
". \"$bucketsdir\\$bucket\\bin\\utils.ps1\"",
"$path_exe=\"$dir\\_installer_.exe\"",
"& $path_exe /S /D=$dir",
"$core_exe=\"$dir\\pot.exe\"",
"sleep_install $core_exe",
"persist -file @(\"$user_AppData\\com.pot-app.desktop\\config.json\") @(\"$persist_dir\\com.pot-app.desktop\\config.json\")",
"$app_data_dir=\"$user_AppData\\com.pot-app.desktop\\plugins\"",
"$app_persist_dir=\"$persist_dir\\com.pot-app.desktop\\plugins\"",
"if((Test-Path $app_persist_dir) -and !(Test-Path $app_data_dir)){",
" Copy-Item $app_persist_dir \"$user_AppData\\com.pot-app.desktop\" -Force -Recurse",
"}",
"clean_redundant_files @($path_exe,\"$admin_apps_lnk\\pot\\pot.lnk\")",
"remove_app_lnk @(\"pot.lnk\")",
"$path_schedule=\"$scoopdir\\shims\\Pot_abgo_bucket_schedule_persist.cmd\"",
"\"@echo off`necho $app_data_dir`necho $app_persist_dir\" | Out-File $path_schedule",
"& \"$bucketsdir\\$bucket\\bin\\sudo.ps1\" \"$bucketsdir\\$bucket\\bin\\schedule.exe\" \"Pot_abgo_bucket_schedule_persist\" \"$bucketsdir\\$bucket\\schedule\\Pot.ps1\""
],
"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",
"$pluginsData=\"$user_AppData\\com.pot-app.desktop\\plugins\"",
"remove_files @(\"$user_AppData\\com.pot-app.desktop\")",
"$ui_exe=\"$dir\\uninstall.exe\"",
"try{ & $ui_exe /S }catch{}",
"sleep_uninstall $ui_exe",
"remove_files @(\"$user_LocalAppData\\com.pot-app.desktop\")",
"& \"$bucketsdir\\$bucket\\bin\\schedule.exe\" \"Pot_abgo_bucket_schedule_persist\""
],
"checkver": {
"github": "https://github.com/pot-app/pot-desktop"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/pot-app/pot-desktop/releases/download/$version/pot_$version_x64-setup.exe#/_installer_.exe"
},
"32bit": {
"url": "https://github.com/pot-app/pot-desktop/releases/download/$version/pot_$version_x86-setup.exe#/_installer_.exe"
},
"arm64": {
"url": "https://github.com/pot-app/pot-desktop/releases/download/$version/pot_$version_arm64-setup.exe#/_installer_.exe"
}
}
}
}