generated from Ash258/GenericBucket
/
wnr.json
58 lines (58 loc) · 1.78 KB
/
wnr.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
{
"version": "1.30.2",
"description": "A timer app with strong expansibility for computers",
"homepage": "https://github.com/RoderickQiu/wnr",
"license": "MPL-2.0",
"architecture": {
"64bit": {
"url": "https://github.com/RoderickQiu/wnr/releases/download/v1.30.2/wnr-1.30.2-Win-x64.7z",
"hash": "1e696ae6c818e1049d052649d80bfc454c67241eb496c913abbafad6c471e9be"
}
},
"installer": {
"script": [
"function CreateFile([String] $file, [String] $content = $null) {",
" if (-not (Test-Path \"$persist_dir\\$file\")) {",
" Write-Host 'File' $file 'does not exists. Creating.' -f Yellow",
" Set-Content \"$dir\\$file\" $content",
" }",
"}",
"CreateFile 'wnr-config.json'",
"CreateFile 'wnr-statistics.json'"
]
},
"uninstaller": {
"script": [
"function BackupFile([String] $file) {",
" Copy-Item \"$dir\\$file\" \"$persist_dir\" -Force",
"}",
"BackupFile 'wnr-config.json'",
"BackupFile 'wnr-statistics.json'"
]
},
"shortcuts": [
[
"wnr.exe",
"Work & Rest"
]
],
"persist": [
"wnr-config.json",
"wnr-statistics.json"
],
"checkver": {
"github": "https://github.com/RoderickQiu/wnr",
"regex": "/releases/tag/(?:v|V)?([\\w.-]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/RoderickQiu/wnr/releases/download/v$version/wnr-$matchHead-Win-x64.7z"
}
}
},
"notes": [
"https://getwnr.com/zh/",
"No more upgrade anymore except bug fix."
]
}