generated from Ash258/GenericBucket
/
weasel-dev.json
45 lines (45 loc) · 2.08 KB
/
weasel-dev.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
{
"homepage": "https://rime.im/",
"description": "【小狼毫】Rime for Windows",
"version": "0.14.3_dev_1.00",
"license": "GPL-3.0-only",
"url": "https://github.com/fxliang/weasel/releases/download/0.14.3_dev_1.00/weasel-0.14.3.100-installer.exe#/dl.7z",
"hash": "a2347a5489351fabb18e3ca8a309fe9e25afaf94194ad8b4bfaa36f615037376",
"post_install": [
"Remove-Item \"$dir\\`$PLUGINSDIR\" -Force -Recurse",
"Add-Content -Path \"$dir\\rime-install-config.bat\" -Value \"set rime_dir=$persist_dir\""
],
"installer": {
"script": [
"New-Item -Path \"HKCU:\\Software\\Rime\" | Out-Null",
"New-Item -Path \"HKCU:\\Software\\Rime\\Weasel\" | Out-Null",
"New-ItemProperty -Path \"HKCU:\\Software\\Rime\\Weasel\" -Name RimeUserDir -Value \"$persist_dir\" | Out-Null",
"New-Item -Path \"HKCU:\\Software\\Rime\\Weasel\\Updates\" | Out-Null",
"New-ItemProperty -Path \"HKCU:\\Software\\Rime\\Weasel\\Updates\" -Name CheckForUpdates -Value \"0\" | Out-Null",
"Start-Process -Wait \"$dir\\WeaselSetup.exe\" \"/s\"",
"New-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\" -Name WeaselServer -Value \"$dir\\WeaselServer.exe\" | Out-Null",
"Start-Process \"$dir\\WeaselServer.exe\""
]
},
"uninstaller": {
"script": [
"Start-Process -Wait \"$dir\\WeaselServer.exe\" \"/quit\"",
"Start-Process -Wait \"$dir\\WeaselSetup.exe\" \"/u\"",
"Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\" -Name WeaselServer",
"Remove-Item -Path \"HKCU:\\Software\\Rime\" -Recurse"
]
},
"shortcuts": [
[
"WeaselServer.exe",
"小狼毫算法服務"
]
],
"checkver": {
"url": "https://github.com/fxliang/weasel/releases/latest",
"regex": "releases/tag/([\\d.\\-_a-z]+)"
},
"autoupdate": {
"url": "https://github.com/fxliang/weasel/releases/download/$version/weasel-0.14.3.7z"
}
}