Skip to content

Commit

Permalink
Merge pull request aws#662 from aws/possible-phar-fix
Browse files Browse the repository at this point in the history
Updating phar build to set an alias
  • Loading branch information
mtdowling committed Jul 2, 2015
2 parents 21d6dbc + 03acb3f commit b0b3a85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/Burgomaster.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct($stageDir, $projectRoot = null)
}

$this->debug("Creating staging directory: $this->stageDir");

if (!mkdir($this->stageDir, 0777, true)) {
throw new \RuntimeException("Could not create {$this->stageDir}");
}
Expand Down Expand Up @@ -343,6 +343,8 @@ public function createPhar(
$this->debug("Creating phar file at $dest");
$this->createDirIfNeeded(dirname($dest));
$phar = new \Phar($dest, 0, basename($dest));
$alias = basename($dest);
$phar->setAlias($alias);
$phar->buildFromDirectory($this->stageDir);

if ($stub !== false) {
Expand Down

0 comments on commit b0b3a85

Please sign in to comment.