Skip to content

Commit

Permalink
Add build script
Browse files Browse the repository at this point in the history
  • Loading branch information
hernanrz committed Feb 26, 2016
1 parent 386ddf9 commit 664eade
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/vendor/*
composer.phar
composer.phar
sample.phar
14 changes: 14 additions & 0 deletions build/compile.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php
/**
* Packages everything into a nice PHAR archive
*/

if(file_exists('emulator.phar')) {
unlink('emulator.phar');
}

$phar = new Phar('emulator.phar', 0, 'emulator.phar');

$phar->buildFromDirectory(dirname(__DIR__));
$phar->delete('composer.phar');
$phar->setDefaultStub('emulator/emulator.php');

0 comments on commit 664eade

Please sign in to comment.