Skip to content

Commit

Permalink
Updating phar build to set an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Jun 26, 2015
1 parent 58b830a commit 03acb3f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/Burgomaster.php
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 03acb3f

Please sign in to comment.