2020-04-03 09:39:32 +08:00

46 lines
1.9 KiB
JSON

{
"homepage": "http://strawberryperl.com",
"version": "5.30.2.1",
"license": "GPL-1.0-or-later|Artistic-1.0-Perl",
"description": "A programming language suitable for writing simple scripts as well as complex applications.",
"architecture": {
"32bit": {
"url": "http://strawberryperl.com/download/5.30.2.1/strawberry-perl-5.30.2.1-32bit-portable.zip",
"hash": "sha1:f049504e41eaf2b1023694c8384fd07eec46090c"
},
"64bit": {
"url": "http://strawberryperl.com/download/5.30.2.1/strawberry-perl-5.30.2.1-64bit-portable.zip",
"hash": "sha1:71f8dbdba5013481013810245bdf6953d2732475"
}
},
"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": {
"url": "http://strawberryperl.com/releases.html",
"regex": "strawberry-perl-([\\d.]+)-32bit-portable\\.zip"
},
"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"
}
}
}