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

qbittorrent-nightly: Add version 6760049627 #978

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
64 changes: 64 additions & 0 deletions bucket/qbittorrent-nightly.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"version": "6760049627",
"description": "Free and reliable P2P Bittorent client.",
"homepage": "https://github.com/qbittorrent/qBittorrent",
"license": {
"identifier": "GPL-2.0-only",
"url": "https://github.com/qbittorrent/qBittorrent/blob/master/COPYING"
},
"architecture": {
"64bit": {
"url": "https://nightly.link/qbittorrent/qBittorrent/workflows/ci_windows.yaml/master/qBittorrent-CI_Windows-x64_libtorrent-2.0.9.zip",
"hash": "79efb00aec2e9aa76ce384972bc1bbafbfe29d9208721c872c6c7850ddf94c60",
"extract_dir": "qBittorrent"
}
},
"pre_install": [
"Remove-Item \"$dir/qbittorrent.pdb\"",
"if ((!(Test-Path \"$persist_dir/profile\")) -and ((Test-Path \"$persist_dir/../qbittorrent-portable/profile\") -or (Test-Path \"$env:APPDATA/qBittorrent\"))) {",
" Write-Host 'Scoop is migrating qbittorrent to use portable mode by default.' -ForegroundColor Yellow",
" Write-Host 'For details, see: https://github.com/ScoopInstaller/Extras/issues/5845' -ForegroundColor Yellow",
" if ((Test-Path \"$persist_dir/../qbittorrent-portable/profile\") -and (Test-Path \"$env:APPDATA/qBittorrent\")) {",
" Write-Host 'Both portable and non-portable qBittorrent profile exist.' -ForegroundColor Yellow",
" Write-Host 'Scoop will prioritize and import the non-portable one.' -ForegroundColor Yellow",
" }",
" New-Item \"$persist_dir/profile\" -ItemType Directory | Out-Null",
" if (Test-Path \"$env:APPDATA/qBittorrent\") {",
" Write-Host 'Copying non-portable profile''s config and data to Scoop persist directory...' -ForegroundColor Yellow",
" Copy-Item \"$env:APPDATA/qBittorrent\" \"$persist_dir/profile/qBittorrent/config\" -Recurse | Out-Null",
" Copy-Item \"$env:LOCALAPPDATA/qBittorrent\" \"$persist_dir/profile/qBittorrent/data\" -Recurse | Out-Null",
" } else {",
" Write-Host 'Copying portable profile's config and data to Scoop persist directory...' -ForegroundColor Yellow",
" Write-Host 'If you haven't setup an absolute download path before torrenting, please manually migrate affected torrents, as they use relative path by default for storaging.' -ForegroundColor Yellow",
" Write-Host 'Or you can move them to an absolute download path in qbittorrent-portable and cleanly (re)install qbittorrent to let migration script to take care of them.' -ForegroundColor Yellow",
" Copy-Item \"$persist_dir/../qbittorrent-portable/profile/qBittorrent/config\" \"$persist_dir/profile/qBittorrent/config\" -Recurse | Out-Null",
" Copy-Item \"$persist_dir/../qbittorrent-portable/profile/qBittorrent/data\" \"$persist_dir/profile/qBittorrent/data\" -Recurse | Out-Null",
" }",
"}"
],
"bin": "qbittorrent.exe",
"shortcuts": [
[
"qbittorrent.exe",
"qBittorrent"
]
],
"persist": "profile",
"checkver": {
"script": [
"try {",
" (Invoke-RestMethod 'https://api.github.com/repositories/3351871/actions/workflows/ci_windows.yaml/runs?branch=master&status=success').workflow_runs[0].id,",
" (Invoke-RestMethod https://raw.githubusercontent.com/qbittorrent/qBittorrent/master/.github/workflows/ci_windows.yaml | Select-String 'libt_version: \\[\"([\\d.]+)\", \"[\\d.]+\"\\]').matches.groups[1].value -join ' '",
"}",
"catch { '' }"
],
"regex": "\\A(\\d+) (?<libtorrent>[\\d.]+)\\Z"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://nightly.link/qbittorrent/qBittorrent/workflows/ci_windows.yaml/master/qBittorrent-CI_Windows-x64_libtorrent-$matchLibtorrent.zip"
}
}
}
}