Skip to content

Commit 664eade

Browse files
committed
Add build script
1 parent 386ddf9 commit 664eade

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/vendor/*
2-
composer.phar
2+
composer.phar
3+
sample.phar

build/compile.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Packages everything into a nice PHAR archive
4+
*/
5+
6+
if(file_exists('emulator.phar')) {
7+
unlink('emulator.phar');
8+
}
9+
10+
$phar = new Phar('emulator.phar', 0, 'emulator.phar');
11+
12+
$phar->buildFromDirectory(dirname(__DIR__));
13+
$phar->delete('composer.phar');
14+
$phar->setDefaultStub('emulator/emulator.php');

0 commit comments

Comments
 (0)