generated from ScoopInstaller/BucketTemplate
/
streamlink-nightly-lean-ttv-lol.json
98 lines (98 loc) 路 4.41 KB
/
streamlink-nightly-lean-ttv-lol.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"version": "6.7.3-16-gb271e02",
"description": "A command-line utility that pipes video streams from various services into a video player.",
"homepage": "https://streamlink.github.io/",
"license": "BSD-2-Clause",
"notes": "You will find your config file here: '$dir\\config'. To customise it, read the docs here: https://streamlink.github.io/cli/config.html#syntax",
"suggest": {
"FFmpeg": [
"ffmpeg",
"ffmpeg-nightly"
],
"mpv": [
"extras/mpv",
"extras/mpv-git"
]
},
"architecture": {
"64bit": {
"url": [
"https://nightly.link/streamlink/windows-builds/workflows/nightly/master/streamlink-6.7.3-16-gb271e02-py312-x86_64.zip.zip",
"https://raw.githubusercontent.com/2bc4/streamlink-ttvlol/master/twitch.py"
],
"hash": [
"91c764bfbe6484fbfa1e8b5cb1ef08e42c3fb1ebca72b7deabdb95953e9aef1b",
"5013339b390e43610f4c967f58ef4916c33f7632f4cdb82f897cb35fb615492a"
]
},
"32bit": {
"url": [
"https://nightly.link/streamlink/windows-builds/workflows/nightly/master/streamlink-6.7.3-16-gb271e02-py312-x86.zip.zip",
"https://raw.githubusercontent.com/2bc4/streamlink-ttvlol/master/twitch.py"
],
"hash": [
"11959cc9d1674c28e4f50d2301ead60ac86ee90fb40564413b7ad6e7fd98539c",
"5013339b390e43610f4c967f58ef4916c33f7632f4cdb82f897cb35fb615492a"
]
}
},
"pre_install": [
"Expand-7zipArchive \"$dir/streamlink-$version-py312-x86*.zip\" \"$dir\" -Removal",
"$python = try { (py.exe -0p | Select-Object -First 1 | Select-String \\S+\\Z).Matches.Value } catch {}",
"$paths = 'bin', 'pkgs'",
"if ($python -and ($ver = [System.Version]((py.exe -V) -Replace '[^\\d.]')) -lt [System.Version]'3.13.0' -and $ver -ge [System.Version]'3.12.0') {",
"$null = New-Item -ItemType SymbolicLink -Path \"$dir/Python\" -Target ($python | Split-Path)",
"} else { $paths += 'Python' }",
"$paths | ForEach-Object { Move-Item \"$dir/streamlink-$version-py312-x86*/$_\" \"$dir\" }",
"Remove-Item -Recurse \"$dir/streamlink-$version-py312-x86*\"",
"Move-Item -Force \"$dir/twitch.py\" \"$dir/pkgs/streamlink/plugins\"",
"$session = (Get-ChildItem \"$dir/pkgs/streamlink/session/session.py\").FullName",
"(Get-Content -Raw $session).Replace('plugins_lazy: bool = True', 'plugins_lazy: bool = False') | Set-Content $session",
"if ((Test-Path \"$persist_dir/config\")) { return }",
"if (Test-Path \"$env:APPDATA/streamlink/config\") {",
" info 'Copying existing ''config'' from ''%APPDATA%\\streamlink\\config'''",
" return $null = Copy-Item \"$env:APPDATA/streamlink/config\" \"$dir/config\"",
"}",
"$null = New-Item \"$dir/config\""
],
"bin": [
[
"bin/streamlink.exe",
"streamlink",
"--config \"$dir\\config\""
],
"bin/streamlinkw.exe"
],
"persist": "config",
"checkver": {
"script": [
"try {",
" $null = (Invoke-RestMethod https://api.github.com/repositories/472790314/actions/artifacts).artifacts[0].name -Match 'streamlink-([\\w.-]+)-py'",
" $verSplit = $matches[1].split('-')",
" if ($verSplit.Length -eq 3 -and $verSplit[2][0] -eq 'g') { $build = 'nightly' }",
" else { $build = 'main' }",
" $build, $matches[1] -join ' '",
"}",
"catch {",
" ''",
"}"
],
"regex": "\\A(?<build>\\S+) (\\S+)\\Z"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": [
"https://nightly.link/streamlink/windows-builds/workflows/$matchBuild/master/streamlink-$version-py312-x86_64.zip.zip",
"https://raw.githubusercontent.com/2bc4/streamlink-ttvlol/master/twitch.py"
]
},
"32bit": {
"url": [
"https://nightly.link/streamlink/windows-builds/workflows/$matchBuild/master/streamlink-$version-py312-x86.zip.zip",
"https://raw.githubusercontent.com/2bc4/streamlink-ttvlol/master/twitch.py"
]
}
}
}
}