fix: Compilation du phar sous Windows

Refs: #49
pull/50/head
Matthieu Marcillaud 3 months ago
parent dabef7e5e4
commit d35422c66e

@ -64,7 +64,7 @@ class PharArchive {
$phar['/index.php'] = "<?php require __DIR__ . '/public/index.php';";
foreach ($this->getPhpFiles() as $file) {
$_file = str_replace($this->sourceDirectory . '/', '', $file);
$_file = str_replace($this->sourceDirectory . DIRECTORY_SEPARATOR, '', $file);
$phar[$_file] = $this->stripWhitespacePhpFile(file_get_contents($file));
$phar[$_file]->compress(\Phar::GZ);
}

Loading…
Cancel
Save