Skip to content

Commit 0a401a0

Browse files
committed
php-nts: Migrate to downloads.php.net/~windows
1 parent b6b5861 commit 0a401a0

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

bucket/php-nts.json

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"version": "8.5.1",
2+
"version": "8.5.2",
33
"description": "A popular general-purpose scripting language that is especially suited to web development. (non-thread safe)",
4-
"homepage": "https://windows.php.net/",
4+
"homepage": "https://www.php.net/",
55
"license": "PHP-3.01",
66
"suggest": {
77
"vcredist": "extras/vcredist2022"
88
},
99
"architecture": {
1010
"64bit": {
11-
"url": "https://windows.php.net/downloads/releases/php-8.5.1-nts-Win32-vs17-x64.zip",
12-
"hash": "b80175dc14753e0645b0a2637782c02583aa5d25d487721129501a25796526db"
11+
"url": "https://downloads.php.net/~windows/releases/archives/php-8.5.2-nts-Win32-vs17-x64.zip",
12+
"hash": "acb844830aee008a7dde4092f6aab62b09541b3f16260806beff4e4dcc7d9617"
1313
},
1414
"32bit": {
15-
"url": "https://windows.php.net/downloads/releases/php-8.5.1-nts-Win32-vs17-x86.zip",
16-
"hash": "de3747b785af34f8978afbadf0dfe81004bfc3c0e4850416dd618c327c5c3a6c"
15+
"url": "https://downloads.php.net/~windows/releases/archives/php-8.5.2-nts-Win32-vs17-x86.zip",
16+
"hash": "6d52684520ef79421f678c8d70792bfe746df31e0b76224ac39d3107f5f89daa"
1717
}
1818
},
1919
"pre_install": [
@@ -42,20 +42,22 @@
4242
]
4343
],
4444
"checkver": {
45-
"url": "https://windows.php.net/download/",
46-
"regex": "<h3 id=\"php-[\\d.]+\".*?>.*?\\(([\\d.]+)\\)</h3>"
45+
"url": "https://www.php.net/releases/branches.php",
46+
"jsonpath": "$..latest"
4747
},
4848
"autoupdate": {
4949
"architecture": {
5050
"64bit": {
51-
"url": "https://windows.php.net/downloads/releases/php-$version-nts-Win32-vs17-x64.zip"
51+
"url": "https://downloads.php.net/~windows/releases/archives/php-$version-nts-Win32-vs17-x64.zip"
5252
},
5353
"32bit": {
54-
"url": "https://windows.php.net/downloads/releases/php-$version-nts-Win32-vs17-x86.zip"
54+
"url": "https://downloads.php.net/~windows/releases/archives/php-$version-nts-Win32-vs17-x86.zip"
5555
}
5656
},
5757
"hash": {
58-
"url": "$baseurl/sha256sum.txt"
58+
"mode": "jsonpath",
59+
"url": "https://www.php.net/backend/win-releases.json",
60+
"jsonpath": "$..[?(@.path == '$basename')].sha256"
5961
}
6062
}
6163
}

0 commit comments

Comments
 (0)