2019-06-28 16:40:35 +08:00

43 lines
1.8 KiB
JSON

{
"homepage": "http://strawberryperl.com",
"version": "5.30.0.1",
"license": "Artistic-1.0-Perl|GPL-1.0-only",
"description": "A programming language suitable for writing simple scripts as well as complex applications.",
"architecture": {
"32bit": {
"url": "http://strawberryperl.com/download/5.30.0.1/strawberry-perl-5.30.0.1-32bit-portable.zip",
"hash": "sha1:bd02ad814c690dbbabfdb621ab7c7640e0849d18"
},
"64bit": {
"url": "http://strawberryperl.com/download/5.30.0.1/strawberry-perl-5.30.0.1-64bit-portable.zip",
"hash": "sha1:cda71445c20f4e0be0a9e07f65dcc10a047a8097"
}
},
"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": "Strawberry Perl ([\\d.]+)",
"autoupdate": {
"architecture": {
"32bit": {
"url": "http://strawberryperl.com/download/$version/strawberry-perl-$version-32bit-portable.zip"
},
"64bit": {
"url": "http://strawberryperl.com/download/$version/strawberry-perl-$version-64bit-portable.zip"
}
},
"hash": {
"url": "http://strawberryperl.com/releases.html",
"find": "(?sm)$basename\" onclick.*?Portable edition.*?$sha1"
}
}
}