Skip to content

Commit

Permalink
traza
Browse files Browse the repository at this point in the history
  • Loading branch information
Wtyd committed Feb 8, 2024
1 parent 0242ab5 commit 1d4d1f7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/Commands/Zero/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ private function compile(string $name): BuildCommand

// $boxBinary = windows_os() ? '.\box.bat' : './box';
$boxBinary = windows_os() ? 'box.bat' : 'box'; // box global install

$process = new Process(
[$boxBinary, 'compile', '--working-dir=' . base_path(), '--config=' . base_path('box.json')] + $this->getExtraBoxOptions(),
// dirname(__DIR__, 2) . '/bin',
Expand Down Expand Up @@ -213,9 +213,16 @@ private function tarBuild($name): BuildCommand
$this->task(
' 3. Tar build to keep permissions',
function () use ($name) {
$this->info("\nEl tar se va a llamar: " . $this->build->getTarName() . "\n");
$this->info("\nEl fichero a comprimir: " . $this->build->getBuildPath() . $name . "\n");
$phar = new PharData($this->build->getTarName());
$phar->addFile($this->build->getBuildPath() . $name);

if (file_exists($this->build->getTarName())) {
$this->info("\nEl tar se creado con éxito\n");
}
if (file_exists($this->build->getTarName())) {
$this->info("\nEl fichero a comprimir existe\n");
}
foreach ($phar as $file) {
$this->info("\nNombre del archivo: " . $file->getFilename() . "\n");
$this->info("Permisos: " . decoct($file->getPerms() & 0777) . "\n"); // Convertir los permisos a octal
Expand Down

0 comments on commit 1d4d1f7

Please sign in to comment.