mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-04 15:51:23 +00:00
parent
ca308757ed
commit
9e2c690cbd
15
php-nts.json
15
php-nts.json
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"homepage": "http://windows.php.net",
|
"homepage": "https://windows.php.net/",
|
||||||
"license": {
|
"license": {
|
||||||
"identifier": "PHP-3.01",
|
"identifier": "PHP-3.01",
|
||||||
"url": "https://secure.php.net/license/"
|
"url": "https://secure.php.net/license/"
|
||||||
@ -30,18 +30,13 @@
|
|||||||
"env_set": {
|
"env_set": {
|
||||||
"PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
|
"PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
|
||||||
},
|
},
|
||||||
"post_install": [
|
"pre_install": [
|
||||||
"# Copy ini scan dir from old location before persistent update",
|
|
||||||
"if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\cli\\conf.d\")) {",
|
|
||||||
" Write-Host -ForegroundColor Cyan \"We are moving your php configuration to $dir\\cli\\conf.d\"",
|
|
||||||
" Move-Item \"$dir\\..\\conf\" \"$dir\\cli\\conf.d\"",
|
|
||||||
"}",
|
|
||||||
"",
|
|
||||||
"# Create directory for custom PHP configuration",
|
"# Create directory for custom PHP configuration",
|
||||||
"if (!(Test-Path \"$dir\\cli\\conf.d\")) {",
|
"if (!(Test-Path \"$dir\\cli\\conf.d\")) {",
|
||||||
" (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null",
|
" (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null",
|
||||||
"}",
|
"}"
|
||||||
"",
|
],
|
||||||
|
"post_install": [
|
||||||
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
||||||
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
||||||
],
|
],
|
||||||
|
|||||||
15
php.json
15
php.json
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"homepage": "http://windows.php.net",
|
"homepage": "https://windows.php.net/",
|
||||||
"license": {
|
"license": {
|
||||||
"identifier": "PHP-3.01",
|
"identifier": "PHP-3.01",
|
||||||
"url": "https://secure.php.net/license/"
|
"url": "https://secure.php.net/license/"
|
||||||
@ -30,18 +30,13 @@
|
|||||||
"env_set": {
|
"env_set": {
|
||||||
"PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
|
"PHP_INI_SCAN_DIR": "$dir\\cli;$dir\\cli\\conf.d;"
|
||||||
},
|
},
|
||||||
"post_install": [
|
"pre_install": [
|
||||||
"# Copy ini scan dir from old location before persistent update",
|
|
||||||
"if ((Test-Path \"$dir\\..\\conf\") -and !(Test-Path \"$dir\\cli\\conf.d\")) {",
|
|
||||||
" Write-Host -ForegroundColor Cyan \"We are moving your php configuration to $dir\\cli\\conf.d\"",
|
|
||||||
" Move-Item \"$dir\\..\\conf\" \"$dir\\cli\\conf.d\"",
|
|
||||||
"}",
|
|
||||||
"",
|
|
||||||
"# Create directory for custom PHP configuration",
|
"# Create directory for custom PHP configuration",
|
||||||
"if (!(Test-Path \"$dir\\cli\\conf.d\")) {",
|
"if (!(Test-Path \"$dir\\cli\\conf.d\")) {",
|
||||||
" (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null",
|
" (New-Item -Type directory \"$dir\\cli\\conf.d\") | Out-Null",
|
||||||
"}",
|
"}"
|
||||||
"",
|
],
|
||||||
|
"post_install": [
|
||||||
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
"# Enable extensions to be found in installation-relative folder (the default is to search C:/php)",
|
||||||
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
"(gc \"$dir\\cli\\php.ini\") | % { $_ -replace '; extension_dir = \"ext\"', 'extension_dir = \"ext\"' } | sc \"$dir\\cli\\php.ini\""
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user