mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
fix composer.ps1 path
This commit is contained in:
parent
2f786b77bd
commit
5336a02bd2
@ -90,7 +90,11 @@ if (-not(Test-Path "runtime\composer.phar"))
|
|||||||
}
|
}
|
||||||
|
|
||||||
# create runtime\composer.ps1
|
# create runtime\composer.ps1
|
||||||
Set-Content -Path 'runtime\composer.ps1' -Value 'Start-Process "runtime\php.exe" ("runtime\composer.phar " + $args) -NoNewWindow -Wait' -Encoding UTF8
|
$ComposerContent = '
|
||||||
|
$WorkingDir = (Split-Path -Parent $MyInvocation.MyCommand.Definition)
|
||||||
|
Start-Process ($WorkingDir + "\php.exe") ($WorkingDir + "\composer.phar " + $args) -NoNewWindow -Wait
|
||||||
|
'
|
||||||
|
$ComposerContent | Set-Content -Path 'runtime\composer.ps1' -Encoding UTF8
|
||||||
|
|
||||||
Write-Host "Successfully downloaded PHP and Composer !" -ForegroundColor Green
|
Write-Host "Successfully downloaded PHP and Composer !" -ForegroundColor Green
|
||||||
Write-Host "Use static-php-cli: " -NoNewline
|
Write-Host "Use static-php-cli: " -NoNewline
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user