diff --git a/.gitignore b/.gitignore index 83e93d8..4522122 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,21 @@ -material/ -vendor/ +# root cache.properties -bin/phpcs -bin/phpcbf + +# bin +bin/* +!bin/php-gameboy +!bin/php-gameboy.phar + +# material +material/ + +# vendor +vendor/ + +# roms roms/ + +# global *.gb *.gbc -*.rom \ No newline at end of file +*.rom diff --git a/bin/build b/bin/build index 45fe303..67b7d70 100755 --- a/bin/build +++ b/bin/build @@ -2,6 +2,7 @@ setSignatureAlgorithm(\Phar::SHA1); $phar->startBuffering(); +addFile($phar, new SplFileInfo('boot.php', $rootDir . '/boot.php', 'boot.php')); +addFile($phar, new SplFileInfo('composer.json', $rootDir . '/composer.json', 'composer.json')); +addFile($phar, new SplFileInfo('vendor/autoload.php', $rootDir . '/vendor/autoload.php', 'vendor/autoload.php')); + $finder = new Finder(); $finder->files() ->ignoreVCS(true) ->name('*.php') - ->exclude('bin') - ->exclude('.gitignore') - ->exclude('.travis.yml') - ->exclude('README.md') - ->exclude('build.xml') - ->exclude('cache.properties') - ->exclude('composer.json') - ->exclude('composer.lock') - ->exclude('docker-php-7') - ->exclude('phpcs.xml') - ->exclude('.git') - ->in($rootDir) + ->in([ + $rootDir . '/src/', + $rootDir . '/vendor/composer', + $rootDir . '/vendor/whatthejeff', + ]) ->sort($finderSort) ; diff --git a/bin/php-gameboy.phar b/bin/php-gameboy.phar index 6d8eb15..dbee798 100755 Binary files a/bin/php-gameboy.phar and b/bin/php-gameboy.phar differ