From 9d1dddb46242423d6663e31be4bd21f67a939056 Mon Sep 17 00:00:00 2001 From: Andrey Savchenko Date: Thu, 27 Aug 2015 14:05:48 +0300 Subject: [PATCH] Normalized slashing on adding files to release zip file. --- RoboFile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) {