8000 fix: ZePHPyr bundle on Windows (#196) · NativePHP/electron@d3e291f · GitHub
[go: up one dir, main page]

Skip to content

Commit d3e291f

Browse files
authored
fix: ZePHPyr bundle on Windows (#196)
1 parent e9db0e9 commit d3e291f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Commands/BundleCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,10 @@ private function finderToZip(Finder $finder, ZipArchive $zip, ?string $path = nu
283283
continue;
284284
}
285285

286-
$zip->addFile($file->getRealPath(), str($path)->finish(DIRECTORY_SEPARATOR).$file->getRelativePathname());
286+
$zipPath = str($path)->finish('/').$file->getRelativePathname();
287+
$zipPath = str_replace('\\', '/', $zipPath);
288+
289+
$zip->addFile($file->getRealPath(), $zipPath);
287290
}
288291
}
289292

0 commit comments

Comments
 (0)
0