diff --git a/RoboFile.php b/RoboFile.php index 1aca037..ceb78dc 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -144,7 +144,8 @@ class RoboFile extends \Robo\Tasks { /** @var \Symfony\Component\Finder\SplFileInfo $file */ foreach ( $finder as $file ) { - $zipArchive->addFile( $file->getRealPath(), 'laps/' . $file->getRelativePathname() ); + $relativePathname = str_replace( '\\', '/', $file->getRelativePathname() ); + $zipArchive->addFile( $file->getRealPath(), 'laps/' . $relativePathname ); } if ( ! $zipArchive->status === ZIPARCHIVE::ER_OK ) {