/
bingwallpaper-cvp.json
55 lines (55 loc) · 2.12 KB
/
bingwallpaper-cvp.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
{
"version": "1.3.2",
"description": "Bing每日壁纸,自动获取Bing的精美图片设置为壁纸,并且支持随机切换历史壁纸,查看壁纸故事",
"homepage": "https://github.com/jadepeng/bing-wallpaper",
"license": "Freeware",
"url": "https://github.com/jadepeng/bing-wallpaper/releases/download/v1.3.2/V1.3.2.zip#/dl.7z",
"hash": "871ff7bf14741235db92443fb990a764eff3203c98f629090617c99c469c72df",
"extract_to": "Programs",
"post_install": [
"",
"#sudo New-ItemProperty -Path \"HKLM:\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\" -Name \"BingWallpaper\" -Value \"$dir\\Programs\\BingWallpaper.exe\" -ErrorAction Ignore | Out-Null",
"Start-Process \"$dir\\Programs\\BingWallpaper.exe\"",
"Write-Host \":: installed.\"",
"",
""
],
"pre_uninstall": [
"",
"$processname = \"BingWallpaper.exe\"",
"$process = Get-Process $processname -ErrorAction SilentlyContinue",
"if ($process) {",
" $process.CloseMainWindow()",
" Start-Sleep -Seconds 5",
" if (!$process.HasExited) {",
" Start-Sleep -Seconds 25",
" $process | Stop-Process -Force",
" }",
"}",
"",
""
],
"uninstaller": {
"script": [
"",
"sudo Remove-ItemProperty -Path \"HKLM:\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\" -Name \"BingWallpaper\" -ErrorAction Ignore | Out-Null",
"sudo Remove-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\" -Name \"BingWallpaper\" -ErrorAction Ignore | Out-Null",
"Write-Host \":: uninstalled.\""
]
},
"shortcuts": [
[
"Programs\\BingWallpaper.exe",
"Freeware BingWallpaper"
]
],
"persist": [
"Programs\\cache"
],
"checkver": {
"github": "https://github.com/jadepeng/bing-wallpaper"
},
"autoupdate": {
"url": "https://github.com/jadepeng/bing-wallpaper/releases/download/v$version/V$version.zip#/dl.7z"
}
}