mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 13:24:51 +08:00
Merge remote-tracking branch 'origin/v3-feat/win' into v3-feat/win
This commit is contained in:
commit
355da340b4
@ -199,7 +199,7 @@ trait windows
|
||||
|
||||
// patch micro win32
|
||||
if ($package->getBuildOption('enable-micro-win32') && !file_exists("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c.win32bak")) {
|
||||
copy("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c", "{$package->getSourceDir()}\\php-src\\sapi\\micro\\php_micro.c.win32bak");
|
||||
copy("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c", "{$package->getSourceDir()}\\sapi\\micro\\php_micro.c.win32bak");
|
||||
FileSystem::replaceFileStr("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c", '#include "php_variables.h"', '#include "php_variables.h"' . "\n#define PHP_MICRO_WIN32_NO_CONSOLE 1");
|
||||
} else {
|
||||
if (file_exists("{$package->getSourceDir()}\\sapi\\micro\\php_micro.c.win32bak")) {
|
||||
|
||||
@ -171,7 +171,7 @@ class Artifact
|
||||
$target_path = $extract_config['path'];
|
||||
|
||||
// Check if target is a file or directory
|
||||
$is_file_target = !is_dir($target_path) && str_contains($target_path, '.');
|
||||
$is_file_target = !is_dir($target_path) && (pathinfo($target_path, PATHINFO_EXTENSION) !== '');
|
||||
|
||||
if ($is_file_target) {
|
||||
// For single file extraction (e.g., vswhere.exe)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user