diff --git a/src/BuildProcess/CompressApplication.php b/src/BuildProcess/CompressApplication.php index 2c7dd4e8..ac0a2d30 100644 --- a/src/BuildProcess/CompressApplication.php +++ b/src/BuildProcess/CompressApplication.php @@ -42,6 +42,10 @@ public function __invoke() foreach (BuiltApplicationFiles::get($this->appPath) as $file) { $relativePathName = str_replace('\\', '/', $file->getRelativePathname()); + if (PHP_OS == 'WINNT' && substr($file->getRealPath(), -strlen($file->getRelativePathname())) != $file->getRelativePathname()) { + continue; + } + $archive->addFile($file->getRealPath(), $relativePathName); $archive->setExternalAttributesName( diff --git a/src/BuildProcess/CopyApplicationToBuildPath.php b/src/BuildProcess/CopyApplicationToBuildPath.php index 21cf7142..c6aa4853 100644 --- a/src/BuildProcess/CopyApplicationToBuildPath.php +++ b/src/BuildProcess/CopyApplicationToBuildPath.php @@ -23,7 +23,7 @@ public function __invoke() $this->ensureBuildDirectoryExists(); foreach ($this->getApplicationFiles() as $file) { - if ($file->isLink()) { + if ($file->isLink() || (PHP_OS == 'WINNT' && substr($file->getRealPath(), -strlen($file->getRelativePathname())) != $file->getRelativePathname())) { continue; }