Normalized slashing on adding files to release zip file.
This commit is contained in:
1 parent
d88a566aee
commit
9d1dddb462
1 file changed
+2
-1
+2
-1
@@ -144,7 +144,8 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
|
|
||||||
/** @var \Symfony\Component\Finder\SplFileInfo $file */
|
/** @var \Symfony\Component\Finder\SplFileInfo $file */
|
||||||
foreach ( $finder as $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 ) {
|
if ( ! $zipArchive->status === ZIPARCHIVE::ER_OK ) {
|
||||||
|
|||||||
Reference in new issue
Block a user