Skip to content

Commit da8b7c2

Browse files
committed
Use the real build target to display
1 parent c4cec15 commit da8b7c2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Package/Target/php/windows.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function patchCLITarget(TargetPackage $package): void
9898
#[Stage]
9999
public function makeCliForWindows(TargetPackage $package, PackageBuilder $builder): void
100100
{
101-
InteractiveTerm::setMessage('Building php: ' . ConsoleColor::yellow('nmake php-cli'));
101+
InteractiveTerm::setMessage('Building php: ' . ConsoleColor::yellow('php.exe'));
102102

103103
// extra lib
104104
$extra_libs = getenv('SPC_EXTRA_LIBS') ?: '';
@@ -215,14 +215,14 @@ protected function deployWindowsBinary(PackageBuilder $builder, TargetPackage $p
215215
'php-cgi' => ["{$package->getSourceDir()}\\x64\\{$rel_type}{$ts}", 'php-cgi.exe', 'php-cgi.pdb'],
216216
default => throw new SPCInternalException("Deployment does not accept type {$sapi}"),
217217
};
218-
$src = "{$src[0]}\\{$src[1]}";
219-
$dst = BUILD_BIN_PATH . '\\' . basename($src);
218+
$src_file = "{$src[0]}\\{$src[1]}";
219+
$dst_file = BUILD_BIN_PATH . '\\' . basename($src_file);
220220

221-
$builder->deployBinary($src, $dst);
221+
$builder->deployBinary($src_file, $dst_file);
222222

223223
// make debug info file path
224224
if ($builder->getOption('no-strip', false) && file_exists("{$src[0]}\\{$src[2]}")) {
225-
cmd()->exec('copy ' . escapeshellarg("{$src[0]}\\{$src[2]}") . ' ' . escapeshellarg($debug_dir));
225+
FileSystem::copy("{$src[0]}\\{$src[2]}", "{$debug_dir}\\{$src[2]}");
226226
}
227227
}
228228
}

0 commit comments

Comments
 (0)