Skip to content

Commit 9aa8e15

Browse files
committed
fix: ZePHPyr bundle on Windows
1 parent 8f28de9 commit 9aa8e15

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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)