From 32de184373be8996f6bae21dd8c9c2e57d2eb467 Mon Sep 17 00:00:00 2001 From: Arjan van der Kruijt Date: Mon, 1 Jun 2026 17:33:18 +0200 Subject: [PATCH 1/2] portable-virtualbox: fixed download link, improved checkver and auto-update --- bucket/portable-virtualbox.json | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/bucket/portable-virtualbox.json b/bucket/portable-virtualbox.json index 971850d53abb97..f98b5dc4518076 100644 --- a/bucket/portable-virtualbox.json +++ b/bucket/portable-virtualbox.json @@ -4,7 +4,7 @@ "homepage": "https://www.vbox.me/", "license": "GPL-2.0-only,CC-BY-NC-SA-3.0", "url": [ - "http://files.vbox.me/files/Portable-VirtualBox_v5.1.22-Starter_v6.4.10-Win_all.exe#/dl.7z", + "https://vbox.me/files/Portable-VirtualBox_v5.1.22-Starter_v6.4.10-Win_all.exe#/dl.7z", "https://download.virtualbox.org/virtualbox/5.1.22/VirtualBox-5.1.22-115126-Win.exe#/VirtualBox.exe", "https://download.virtualbox.org/virtualbox/5.1.22/Oracle_VM_VirtualBox_Extension_Pack-5.1.22-115126.vbox-extpack#/Extension" ], @@ -21,8 +21,28 @@ "Portable VirtualBox" ] ], - "checkver": "VirtualBox_v(?[\\d.]+)-Starter_v(?[\\d.]+)-Win_all.exe", + "checkver": { + "script": [ + "$cont = (Invoke-WebRequest $url -UseBasicParsing).Content", + "$regex = 'VirtualBox_v(?[\\d.]+)-Starter_v(?[\\d.]+)-Win_all.exe'", + "if (!($cont -match $regex)) { error \"Could not match $regex in $url\"; continue }", + "$vboxVersion = $($matches.vbox)", + "$fullversion = \"$($matches.version).$($matches.vbox)\"", + "", + "$nextUrl = \"https://download.virtualbox.org/virtualbox/$vboxVersion/\"", + "$nextCont = (Invoke-WebRequest $nextUrl -UseBasicParsing).Content", + "$nextRegex = \"VirtualBox-$vboxVersion-(?\\d+)-Win.exe\"", + "if (!($nextCont -match $nextRegex)) { error \"Could not match $nextRegex in $nextUrl\"; continue }", + "$vboxbuild = $($matches.vboxbuild)", + "\"$fullversion $vboxVersion $vboxbuild\"" + ], + "regex": "([\\d.]+) (?[\\d.]+) (?[\\d]+)" + }, "autoupdate": { - "url": "http://files.vbox.me/files/Portable-VirtualBox_v$matchVbox-Starter_v$matchVersion-Win_all.exe#/dl.7z" + "url": [ + "https://vbox.me/files/Portable-VirtualBox_v$matchVboxversion-Starter_v$matchHead-Win_all.exe#/dl.7z", + "https://download.virtualbox.org/virtualbox/$matchVboxversion/VirtualBox-$matchVboxversion-$matchVboxbuild-Win.exe#/VirtualBox.exe", + "https://download.virtualbox.org/virtualbox/$matchVboxversion/Oracle_VM_VirtualBox_Extension_Pack-$matchVboxversion-$matchVboxbuild.vbox-extpack#/Extension" + ] } } From 037ae0a8c67c99add9b928ca76b28445132f2e13 Mon Sep 17 00:00:00 2001 From: Arjan van der Kruijt Date: Sat, 20 Jun 2026 22:58:44 +0200 Subject: [PATCH 2/2] portable-virtualbox: simplify checkver.script and update version number accordingly --- bucket/portable-virtualbox.json | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/bucket/portable-virtualbox.json b/bucket/portable-virtualbox.json index f98b5dc4518076..da238643ca7287 100644 --- a/bucket/portable-virtualbox.json +++ b/bucket/portable-virtualbox.json @@ -1,5 +1,5 @@ { - "version": "6.4.10", + "version": "6.4.10.5.1.22", "description": "A portable VirtualBox downloader and launcher written by Runar Buvik", "homepage": "https://www.vbox.me/", "license": "GPL-2.0-only,CC-BY-NC-SA-3.0", @@ -23,16 +23,12 @@ ], "checkver": { "script": [ - "$cont = (Invoke-WebRequest $url -UseBasicParsing).Content", - "$regex = 'VirtualBox_v(?[\\d.]+)-Starter_v(?[\\d.]+)-Win_all.exe'", - "if (!($cont -match $regex)) { error \"Could not match $regex in $url\"; continue }", + "$page -match 'VirtualBox_v(?[\\d.]+)-Starter_v(?[\\d.]+)-Win_all.exe'", "$vboxVersion = $($matches.vbox)", "$fullversion = \"$($matches.version).$($matches.vbox)\"", - "", - "$nextUrl = \"https://download.virtualbox.org/virtualbox/$vboxVersion/\"", - "$nextCont = (Invoke-WebRequest $nextUrl -UseBasicParsing).Content", - "$nextRegex = \"VirtualBox-$vboxVersion-(?\\d+)-Win.exe\"", - "if (!($nextCont -match $nextRegex)) { error \"Could not match $nextRegex in $nextUrl\"; continue }", + "$url = \"https://download.virtualbox.org/virtualbox/$vboxVersion/\"", + "$page = (Invoke-WebRequest $url -UseBasicParsing).Content", + "$page -match \"VirtualBox-$vboxVersion-(?\\d+)-Win.exe\"", "$vboxbuild = $($matches.vboxbuild)", "\"$fullversion $vboxVersion $vboxbuild\"" ],