Normalized slashing on adding files to release zip file.

This commit is contained in:
Andrey Savchenko committed 2015-08-27 14:05:48 +03:00
1 parent d88a566aee
commit 9d1dddb462
1 file changed
+2 -1
+2 -1
View File
@@ -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 ) {