{ "version": "5.42.0.1", "description": "Strawberry Perl with extra PDL related modules and external libraries.", "homepage": "https://strawberryperl.com", "license": "GPL-1.0-or-later|Artistic-1.0-Perl", "architecture": { "32bit": { "url": "https://strawberryperl.com/download/5.32.1.1/strawberry-perl-5.32.1.1-32bit-PDL.zip", "hash": "9226ea757a9b5592df8a2c3bdc37d3ef8d6383ab13a82cc9176bc95ecbed4ae4" }, "64bit": { "url": "https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_54201_64bit/strawberry-perl-5.42.0.1-64bit-PDL.zip", "hash": "3b7305590ba39bfd23b939b9b7e9c5269f002ae4bb73e82c2f87770799e32012" } }, "post_install": [ "# enable standard idiomatic access to user's home directory", "## remove HomeDir section from portable.perl (disables Portable.pm override of File::HomeDir)", "## NOTE: conversion to byte[] avoids adding an extra trailing newline to the output file", "[System.IO.File]::WriteAllBytes(\"$dir\\portable.perl\", ([byte[]][char[]]((Get-Content -Raw \"$dir\\portable.perl\") -replace \"(?ms)^HomeDir:.*?^(?=\\S)\",\"\")))" ], "env_add_path": [ "perl\\site\\bin", "perl\\bin", "c\\bin" ], "checkver": { "script": [ "$releasesURL = 'https://strawberryperl.com/releases.json'", "$releasesJSON = Invoke-WebRequest ($releasesURL) | ConvertFrom-Json", "$URL64bit = ($releasesJSON | Where-Object { $_.edition.pdl.url -like '*-64bit-PDL.zip' } | Select-Object -First 1).edition.pdl.url", "$v64bit = ($releasesJSON | Where-Object { $_.edition.pdl.url -like '*-64bit-PDL.zip' } | Select-Object -First 1).version", "$URL32bit = ($releasesJSON | Where-Object { $_.edition.pdl.url -like '*-32bit-PDL.zip' } | Select-Object -First 1).edition.pdl.url", "$v32bit = ($releasesJSON | Where-Object { $_.edition.pdl.url -like '*-32bit-PDL.zip' } | Select-Object -First 1).version", "Write-Output ('v:'+$v64bit+' url:' + $URL64bit + ' v:'+$v32bit + ' url:' + $URL32bit)" ], "regex": "v:(?[\\d\\.]+) url:(?https://.+/\\S+) v:(?[\\d\\.]+) url:(?https://.+/\\S+\\.zip)" }, "autoupdate": { "architecture": { "32bit": { "url": "$matchUrl32bit" }, "64bit": { "url": "$matchUrl64bit" } }, "hash": { "mode": "json", "url": "https://strawberryperl.com/releases.json", "jsonpath": "$[?(@.edition.pdl && @.edition.pdl.url == '$url')].edition.pdl.sha256" } } }