mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 00:01:20 +00:00
Enable PHP extensions to be found in installation-relative folder
The default is to look in C:\php\ext, which defeats the self-contained nature of scoop apps
This commit is contained in:
parent
bcb70947cd
commit
e51204fcb3
10
php.json
10
php.json
@ -6,7 +6,7 @@
|
|||||||
"64bit": {
|
"64bit": {
|
||||||
"url": [
|
"url": [
|
||||||
"http://windows.php.net/downloads/releases/php-7.0.4-Win32-VC14-x64.zip",
|
"http://windows.php.net/downloads/releases/php-7.0.4-Win32-VC14-x64.zip",
|
||||||
"https://raw.githubusercontent.com/MPLew-is/scoop-wamp/master/visual-c-redistributables/14/64-bit/vcruntime140.dll"
|
"https://raw.githubusercontent.com/MPLew-is/scoop-wamp/master/visual-c-redistributables/14/64-bit/vcruntime140.dll"
|
||||||
],
|
],
|
||||||
"hash": [
|
"hash": [
|
||||||
"sha1:52b0ce7ee7600672383694c65071966ff3a20b92",
|
"sha1:52b0ce7ee7600672383694c65071966ff3a20b92",
|
||||||
@ -25,7 +25,13 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"bin": "php.exe",
|
"bin": "php.exe",
|
||||||
"post_install": "cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"",
|
"post_install": "
|
||||||
|
#Copy PHP configuration file to expected location
|
||||||
|
cp \"$dir\\php.ini-production\" \"$dir\\php.ini\"
|
||||||
|
|
||||||
|
#Enable extensions to be found in installation-relative folder (the default is to search C:/php)
|
||||||
|
(gc \"$dir\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\php.ini\"
|
||||||
|
",
|
||||||
"checkver": {
|
"checkver": {
|
||||||
"url": "http://windows.php.net/download/",
|
"url": "http://windows.php.net/download/",
|
||||||
"re": "<h3 id=\"php-7.0\".*?>.*?\\(([0-9\\.]+)\\)</h3>"
|
"re": "<h3 id=\"php-7.0\".*?>.*?\\(([0-9\\.]+)\\)</h3>"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user