Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore (GitHub API): Use repo ID, instead of repo name #1429

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bucket/7zip-zstd.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"Formats"
],
"checkver": {
"url": "https://api.github.com/repos/mcmilk/7-Zip-zstd/releases",
"url": "https://api.github.com/repositories/61958135/releases",
"jsonpath": "$[0].tag_name"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/arduino-ide-rc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
]
],
"checkver": {
"url": "https://api.github.com/repos/arduino/arduino-ide/releases",
"url": "https://api.github.com/repositories/337042139/releases",
"regex": "tag/([\\d.]+(-rc\\d+)?)"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/atom-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"}"
],
"checkver": {
"url": "https://api.github.com/repos/atom/atom/releases",
"url": "https://api.github.com/repositories/3228505/releases",
"regex": "/releases/tag/(?:v)?([\\d.]+(-beta\\d+)?)"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/cosmosdbexplorer-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
]
],
"checkver": {
"url": "https://api.github.com/repos/sachabruttin/CosmosDbExplorer/releases",
"url": "https://api.github.com/repositories/113423601/releases",
"regex": "v([\\d.]+(-beta)?)"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/ffmpeg-shared-nightly.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"bin\\ffprobe.exe"
],
"checkver": {
"url": "https://api.github.com/repos/BtbN/FFmpeg-Builds/releases",
"url": "https://api.github.com/repositories/292087234/releases",
"jsonpath": "$..browser_download_url",
"regex": "autobuild-(?<time>[\\d-]+)/ffmpeg-N-(\\d+)-g(?<hash>[a-z\\d]+)-win64-gpl-shared\\.zip"
},
Expand Down
2 changes: 1 addition & 1 deletion bucket/ffmpeg-yt-dlp.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"checkver": {
"script": [
"# 32-bit file is either listed above or below the 64-bit one. Therefore we need a checkver script to match it.",
"$url = 'https://api.github.com/repos/yt-dlp/FFmpeg-Builds/releases'",
"$url = 'https://api.github.com/repositories/377430603/releases'",
"$regex_64bit = 'autobuild-(?<buildtime>(?<builddate>\\d{4}-\\d{2}-\\d{2})-\\d{2}-\\d{2})/(?<filename>ffmpeg-n(?<ffmpegver>[\\d.-]+)-\\w+-win64-gpl-[\\d.]+)\\.zip'",
"$regex_32bit = $regex_64bit.replace('win64', 'win32')",
"$cont = $(Invoke-WebRequest($url)).Content | ConvertFrom-Json",
Expand Down
2 changes: 1 addition & 1 deletion bucket/goneovim-nightly.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
]
],
"checkver": {
"url": "https://api.github.com/repos/akiyosi/goneovim/releases/tags/nightly",
"url": "https://api.github.com/repositories/107124394/releases/tags/nightly",
"jsonpath": "$.assets[?(@.name=='goneovim-windows.zip')].updated_at",
"regex": ".*(?<year>\\d{4})\\D(?<month>\\d{2})\\D(?<day>\\d{2}).*",
"replace": "${year}${month}${day}"
Expand Down
15 changes: 8 additions & 7 deletions bucket/logseq-nightly.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"version": "0.8.12-20221201",
"version": "0.9.19-20231024",
"description": "A privacy-first platform for knowledge sharing and management",
"homepage": "https://logseq.com",
"license": "AGPL-3.0-only",
"architecture": {
"64bit": {
"url": "https://github.com/logseq/logseq/releases/download/nightly/Logseq-win-x64-0.8.12+nightly.20221201.exe#/dl.7z",
"hash": "f8583fe37203c63953d52f5fa0bbf1d97cfbff5978670c2cbc0e09141d013edf"
"url": "https://github.com/logseq/logseq/releases/download/nightly/Logseq-win-x64-0.9.19-alpha+nightly.20231024.exe#/dl.7z",
"hash": "9f422dc64b940620bba3b12639847bdbdcca56c557b2651c1d7c7f622fd69b55"
}
},
"pre_install": [
Expand All @@ -20,17 +20,18 @@
]
],
"checkver": {
"url": "https://api.github.com/repos/logseq/logseq/releases/tags/nightly",
"regex": "Logseq-win-x64-(?<main>[\\d.]+)\\+nightly\\.(?<date>\\d{8})",
"url": "https://api.github.com/repositories/266231149/releases/tags/nightly",
"jsonpath": "$.assets..name",
"regex": "Logseq-win-x64-(?<main>[\\d.]+)-alpha\\+nightly\\.(?<date>\\d{8})",
"replace": "${main}-${date}"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/logseq/logseq/releases/download/nightly/Logseq-win-x64-$matchMain+nightly.$matchDate.exe#/dl.7z",
"url": "https://github.com/logseq/logseq/releases/download/nightly/Logseq-win-x64-$matchMain-alpha+nightly.$matchDate.exe#/dl.7z",
"hash": {
"url": "$baseurl/SHA256SUMS.txt",
"regex": "$sha256\\s{2}Logseq-win-x64-$matchMain\\+nightly\\.$matchDate\\.exe"
"regex": "$sha256\\s{2}Logseq-win-x64-$matchMain-alpha\\+nightly\\.$matchDate\\.exe"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion bucket/micro-nightly.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"extract_dir": "micro-2.0.13",
"bin": "micro.exe",
"checkver": {
"url": "https://api.github.com/repos/zyedidia/micro/releases/tags/nightly",
"url": "https://api.github.com/repositories/53632140/releases/tags/nightly",
"regex": "updated_at.+\"([\\d\\-]+)T.*micro-(?<micro>.+)-win",
"replace": "${2}-${1}"
},
Expand Down
2 changes: 1 addition & 1 deletion bucket/mpv.net-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
],
"persist": "portable_config",
"checkver": {
"url": "https://api.github.com/repos/mpvnet-player/mpv.net/releases",
"url": "https://api.github.com/repositories/101537172/releases",
"jsonpath": "$..browser_download_url",
"regex": "download/v(?<tag>[\\d.]+(?<channel>-beta)?)/mpv.net-([\\d.]+)-beta.zip"
},
Expand Down
10 changes: 5 additions & 5 deletions bucket/neovide-dev.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.7.0",
"version": "0.11.2",
"description": "A simple GUI for Neovim (prerelease version)",
"homepage": "https://github.com/Kethku/neovide",
"license": "MIT",
Expand All @@ -8,8 +8,8 @@
},
"architecture": {
"64bit": {
"url": "https://github.com/Kethku/neovide/releases/download/0.7.0/neovide.exe",
"hash": "8fb6c9edacb66a0f82e97289386f287d38332daaf9ffc7adbdfe6f67f157cafe"
"url": "https://github.com/neovide/neovide/releases/download/0.11.2/neovide.exe.zip",
"hash": "7792d842e04c912ef20906ddfd36f8f855f11d12100d804e6e321b9a55a28d13"
}
},
"bin": "neovide.exe",
Expand All @@ -20,13 +20,13 @@
]
],
"checkver": {
"url": "https://api.github.com/repos/Kethku/neovide/releases",
"url": "https://api.github.com/repositories/226408450/releases",
"jsonpath": "$[0].tag_name"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/Kethku/neovide/releases/download/$version/neovide.exe"
"url": "https://github.com/neovide/neovide/releases/download/$version/neovide.exe.zip"
}
}
}
Expand Down
9 changes: 5 additions & 4 deletions bucket/neovim-nightly.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.10.0-dev-1055-gb7734c4ec",
"version": "0.10.0-9de157b",
"description": "Vim fork focused on extensibility and usability",
"homepage": "https://neovim.io",
"license": {
Expand All @@ -12,14 +12,15 @@
"architecture": {
"64bit": {
"url": "https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip",
"hash": "f9de6a08bc7db88fa31d9c4ee7b7d4bf79e9a15f9839b5238af074089f3ed979"
"hash": "5ead757f4c9ccd3786e29032411be803c1e5afaeee7c96cd0ce2005c93f29bbb"
}
},
"extract_dir": "nvim-win64",
"bin": "bin\\nvim.exe",
"checkver": {
"url": "https://api.github.com/repos/neovim/neovim/releases",
"regex": "NVIM v([\\w.-]+)\\+([\\w.-]+)",
"url": "https://api.github.com/repositories/16408992/releases/tags/nightly",
"jsonpath": "$.body",
"regex": "NVIM v([\\d.]+)-dev-([a-f\\d]+)",
"replace": "${1}-${2}"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/pester4.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "Pester"
},
"checkver": {
"url": "https://api.github.com/repos/pester/Pester/tags?per_page=100",
"url": "https://api.github.com/repositories/1213474/tags?per_page=100",
"regex": "tags/(4[\\d.]+)\""
},
"autoupdate": {
Expand Down
6 changes: 3 additions & 3 deletions bucket/prismlauncher-git.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
]
],
"checkver": {
"url": "https://api.github.com/repos/PrismLauncher/PrismLauncher/commits",
"jsonpath": "$..sha",
"regex": "(?<sha>^[a-fA-F0-9]{0,7})",
"url": "https://api.github.com/repositories/553135896/actions/workflows/trigger_builds.yml/runs?branch=develop&status=success",
"jsonpath": "$.workflow_runs[0].head_sha",
"regex": "(?<sha>\\A[a-f\\d]{0,7})",
"replace": "7.0-${sha}"
},
"autoupdate": {
Expand Down
38 changes: 0 additions & 38 deletions bucket/prismlauncher-qt5-git.json

This file was deleted.

17 changes: 9 additions & 8 deletions bucket/prusaslicer-pre.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"version": "2.6.0-beta3",
"version": "2.7.0-alpha1",
"description": "G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)",
"homepage": "https://www.prusa3d.com/prusaslicer/",
"license": "AGPL-3.0-or-later",
"architecture": {
"64bit": {
"url": "https://github.com/prusa3d/PrusaSlicer/releases/download/version_2.6.0-beta3/PrusaSlicer-2.6.0-beta3+win64-202305261352.zip",
"hash": "b683cbda33c6ffbb24a4d37251899598601dea65ce26d90670dbec8d173cc234",
"extract_dir": "PrusaSlicer-2.6.0-beta3+win64-202305261352"
"url": "https://github.com/prusa3d/PrusaSlicer/releases/download/version_2.7.0-alpha1/PrusaSlicer-2.7.0-alpha1+win64-202310191602_signed.zip",
"hash": "85296f9fa51cda793edaee1ba4c76219d49f4aa244d077c69a2c430699dd21d7",
"extract_dir": "PrusaSlicer-2.7.0-alpha1+win64-202310191602_signed"
}
},
"bin": "prusa-slicer-console.exe",
Expand All @@ -18,14 +18,15 @@
]
],
"checkver": {
"url": "https://api.github.com/repos/prusa3d/PrusaSlicer/releases",
"regex": "PrusaSlicer-([\\d.]+-\\w+)\\+win64-(?<timestamp64>\\d+)(?:_signed)?.zip"
"url": "https://api.github.com/repositories/52882701/releases",
"jsonpath": "$[0].assets..name",
"regex": "PrusaSlicer-([\\d.]+(?:-[a-z]+\\d+)?)\\+win64-(?<timestamp>\\d{12})_signed\\.zip"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://github.com/prusa3d/PrusaSlicer/releases/download/version_$version/PrusaSlicer-$version+win64-$matchTimestamp64.zip",
"extract_dir": "PrusaSlicer-$version+win64-$matchTimestamp64"
"url": "https://github.com/prusa3d/PrusaSlicer/releases/download/version_$version/PrusaSlicer-$version+win64-$matchTimestamp_signed.zip",
"extract_dir": "PrusaSlicer-$version+win64-$matchTimestamp_signed"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion bucket/pwsh-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"pre_install": "if(!(Test-Path \"$dir\\profile.ps1\")) { New-Item \"$dir\\profile.ps1\" -ItemType File }",
"persist": "profile.ps1",
"checkver": {
"url": "https://api.github.com/repos/PowerShell/PowerShell/releases",
"url": "https://api.github.com/repositories/49609581/releases",
"jsonpath": "$[?(@.prerelease == true)].tag_name",
"regex": "v([\\w.-]+)"
},
Expand Down
2 changes: 1 addition & 1 deletion bucket/sharex-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"ShareX"
],
"checkver": {
"url": "https://api.github.com/repos/ShareX/DevBuilds/releases",
"url": "https://api.github.com/repositories/538422110/releases",
"jsonpath": "$..tag_name",
"regex": "v([\\d.]+)"
},
Expand Down
12 changes: 5 additions & 7 deletions bucket/smplayer-with-smtube.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,16 @@
"# matching from Extras bucket to avoid mangling FossHub mode in the script",
"$url1 = 'https://raw.githubusercontent.com/ScoopInstaller/Extras/master/bucket/smplayer.json'",
"$regex1 = 'smplayer-portable-([\\d.]+)-win32-qt([\\d.]+)\\.7z'",
"$cont = (Invoke-WebRequest $url1).Content | ConvertFrom-Json",
"if (!($cont.architecture.'32bit'.url -match $regex1)) { error \"Could not match '$regex1' on '$url1'\"; continue }",
"if ((Invoke-RestMethod $url1).architecture.'32bit'.url -notmatch $regex1) { error \"Could not match '$regex1' on '$url1'\"; continue }",
"$smplayer_ver = $matches[1]; $smplayer_qtver = $matches[2]",
"",
"$url2 = 'https://api.github.com/repos/smplayer-dev/smtube/releases/latest'",
"$regex2 = 'smtube-([\\d.]+)-win32-qt([\\d.]+)\\.exe'",
"$cont = (Invoke-WebRequest $url2).Content",
"if (!($cont -match $regex2)) { error \"Could not match '$regex2' on '$url2'\"; continue }",
"$url2 = 'https://api.github.com/repositories/347901241/releases/latest'",
"$regex2 = '\\bsmtube-([\\d.]+)-win32-qt([\\d.]+)\\.exe\\b'",
"if ((Invoke-RestMethod $url2).assets.name -join \"`n\" -notmatch $regex2) { error \"Could not match '$regex2' on '$url2'\"; continue }",
"$smtube_ver = $matches[1]; $smtube_qtver = $matches[2]",
"Write-Output $smplayer_ver $smplayer_qtver $smtube_ver $smtube_qtver"
],
"regex": "(?<smplayerver>[\\d.]+) (?<smplayerqtver>[\\d.]+) (?<smtubever>[\\d.]+) (?<smtubeqtver>[\\d.]+)",
"regex": "\\A(?<smplayerver>[\\d.]+) (?<smplayerqtver>[\\d.]+) (?<smtubever>[\\d.]+) (?<smtubeqtver>[\\d.]+)\\Z",
"replace": "${smplayerver}-smtube${smtubever}"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/spotbugs-beta.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
],
"persist": "plugin",
"checkver": {
"url": "https://api.github.com/repos/spotbugs/spotbugs/releases",
"url": "https://api.github.com/repositories/72889410/releases",
"jsonpath": "$[0].tag_name"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/v2rayn-pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
]
},
"checkver": {
"url": "https://api.github.com/repos/2dust/v2rayN/releases",
"url": "https://api.github.com/repositories/199570071/releases",
"regex": "download/([\\d.]+)/"
},
"autoupdate": {
Expand Down
2 changes: 1 addition & 1 deletion bucket/windows-terminal-preview.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
],
"pre_uninstall": "if ($cmd -eq 'uninstall') { reg import \"$dir\\uninstall-context.reg\" }",
"checkver": {
"url": "https://api.github.com/repos/microsoft/terminal/releases",
"url": "https://api.github.com/repositories/100060912/releases",
"jsonpath": "$[?(@.prerelease == true)].tag_name",
"regex": "v([\\d.]+)"
},
Expand Down