Logo
Explore Help
Sign In
crazywhalecc/static-php-cli
1
0
Fork 0
You've already forked static-php-cli
mirror of https://github.com/crazywhalecc/static-php-cli.git synced 2026-03-18 04:44:53 +08:00
Code Issues Packages Projects Releases Wiki Activity
static-php-cli/bin/spc.ps1

13 lines
419 B
PowerShell
Raw Normal View History

add windows support
2024-01-10 21:08:25 +08:00
$PHP_Exec = ".\runtime\php.exe"
Add initial windows runtime setup (#292) * add initial windows runtime setup * add cool console output * doctor support windows base * add `add-path` and `remove-path` for bin/setup-runtime * fix composer.ps1 path * add windows system util * add windows cmd and doctor base check * add windows fallback for laravel/prompts * cd fix [skip ci] * dir separator and typo fix [skip ci]
2023-12-24 20:17:06 +08:00
if (-not(Test-Path $PHP_Exec)) {
$PHP_Exec = Get-Command php.exe -ErrorAction SilentlyContinue | Select-Object -ExpandProperty Definition
if (-not $PHP_Exec) {
Write-Host "Error: PHP not found, you need to install PHP on your system or use 'bin/setup-runtime'." -ForegroundColor Red
exit 1
}
}
add windows support
2024-01-10 21:08:25 +08:00
& "$PHP_Exec" ("bin/spc") @args
Fix windows curl build (#368) * fix curl on windows build needs nghttp2.dll bug * add curl on windows tests * cs fix * fix curl headers * exit powershell properly * reproduce zend_mm_heap corrupted * reproduce zend_mm_heap corrupted * reproduce zend_mm_heap corrupted * add for-libs option for download * add for-libs option for download * add for-libs option for download
2024-03-05 21:43:09 +08:00
exit $LASTEXITCODE
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 27ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API