/
spotlight-desktop.json
59 lines (59 loc) · 2.18 KB
/
spotlight-desktop.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
{
"version": "2.0.1",
"description": "Simple app to change the desktop wallpaper to the Windows Spotlight Lock Screen image.",
"homepage": "https://github.com/onlineth/Spotlight-Desktop",
"license": "AGPL-3.0",
"notes": [
"This is a simple app that will take the current Spotlight Lock Screen image and set it to your desktop wallpaper.",
""
],
"url": "https://github.com/onlineth/Spotlight-Desktop/releases/download/2.0.1/SpotlightDesktop.msi",
"hash": "f14135aaf2333309b8b39d55bbc0bcb081d2272403829aeac9f23310c0a3e660",
"extract_dir": "",
"post_install": [
"sudo New-ItemProperty -Path \"HKLM:\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\" -Name \"SpotlightDesktop\" -Value \"$dir\\Spotlight Desktop.exe\" -ErrorAction Ignore | Out-Null",
"Start-Process \"$dir\\Spotlight Desktop.exe\"",
"Write-Host \":: installed.\""
],
"uninstaller": {
"script": [
"",
"$processname = \"Spotlight Desktop.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",
" }",
"}",
"",
"sudo Remove-ItemProperty -Path \"HKLM:\\Software\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\" -Name \"SpotlightDesktop\" -ErrorAction Ignore | Out-Null",
"Write-Host \":: uninstalled.\""
]
},
"bin": [
[
"Spotlight Desktop.exe",
"Spotlight Desktop"
]
],
"shortcuts": [
[
"Spotlight Desktop.exe",
"Spotlight Desktop"
]
],
"persist": [
"data"
],
"checkver": {
"github": "https://github.com/onlineth/Spotlight-Desktop/tags",
"regex": "([\\d.]+)"
},
"autoupdate": {
"url": "https://github.com/onlineth/Spotlight-Desktop/releases/download/$version/SpotlightDesktop.msi",
"extract_dir": ""
}
}