forked from ScoopInstaller/Versions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kodi-dev.json
58 lines (58 loc) · 2.33 KB
/
kodi-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
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"version": "20220920",
"description": "Open source home theater/media center software and entertainment hub for digital media",
"homepage": "https://kodi.tv/",
"license": "GPL-2.0-or-later",
"suggest": {
"Visual C++ Redistributable": "extras/vcredist2022"
},
"architecture": {
"64bit": {
"url": "https://mirrors.kodi.tv/nightlies/windows/win64/master/KodiSetup-20220920-a5ceb63a-master-x64.exe#/dl.7z",
"hash": "586bad3a97d0beedbccd2e9fec02026b7b7abb4e6f98ac4817a1f42e87817ffb"
},
"32bit": {
"url": "https://mirrors.kodi.tv/nightlies/windows/win32/master/KodiSetup-20220920-a5ceb63a-master-x86.exe#/dl.7z",
"hash": "34c45b8675cca7922b6f9450926e997b9f10edddd1f67790bee6db4637ef6bbb"
}
},
"post_install": "'$PLUGINSDIR', '$TEMP', 'AppxManifest.xml', 'Uninstall.exe' | ForEach-Object { Remove-Item \"$dir\\$_\" -Recurse -Force }",
"shortcuts": [
[
"kodi.exe",
"Kodi Dev",
"-p"
]
],
"persist": "portable_data",
"checkver": {
"script": [
"$builds = 'win32', 'win64'",
"$script_ver = ''",
"$urls = @()",
"foreach ($build in $builds) {",
" $base_url = 'https://mirrors.kodi.tv/nightlies/windows/'+ $build + '/master/'",
" $dl_page = Invoke-WebRequest $base_url -UseBasicParsing",
" $full_version = $dl_page.links | Where-Object href -match '\\.exe$' | Select-Object -first 1 -expand href",
" $script_ver = $full_version -split '-' | Select-Object -Skip 1 | Select-Object -First 1",
" $urls += $full_version",
"}",
"Write-Output ('version:\"' + $script_ver + '\"') ('urls:\"' + $urls + '\"')"
],
"regex": "version:\"(?<version>\\d+)\"\\surls:\"(?<win32bit>.+)\\s(?<win64bit>.+)\""
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://mirrors.kodi.tv/nightlies/windows/win64/master/$matchWin64bit#/dl.7z"
},
"32bit": {
"url": "https://mirrors.kodi.tv/nightlies/windows/win32/master/$matchWin32bit#/dl.7z"
}
},
"hash": {
"url": "$url?mirrorlist",
"regex": "$sha256"
}
}
}