diff --git a/bin/static-php-cli b/bin/static-php-cli deleted file mode 100755 index 1c012bf9..00000000 --- a/bin/static-php-cli +++ /dev/null @@ -1,16 +0,0 @@ -#!php -run(); -} catch (Exception $e) { - \SPC\exception\ExceptionHandler::getInstance()->handle($e); -} diff --git a/composer.json b/composer.json index 845a6773..89b36f00 100644 --- a/composer.json +++ b/composer.json @@ -37,7 +37,7 @@ } }, "bin": [ - "bin/static-php-cli" + "bin/spc" ], "scripts": { "analyse": "phpstan analyse --memory-limit 300M", diff --git a/src/SPC/builder/macos/MacOSBuilder.php b/src/SPC/builder/macos/MacOSBuilder.php index 9fab944c..e87d2c3a 100644 --- a/src/SPC/builder/macos/MacOSBuilder.php +++ b/src/SPC/builder/macos/MacOSBuilder.php @@ -143,8 +143,6 @@ class MacOSBuilder extends BuilderBase ); } - $extra_libs .= ' /Users/jerry/project/git-project/static-php-cli/buildroot/lib/libsqlite3.a'; - // patch before configure Patcher::patchPHPBeforeConfigure($this); @@ -157,7 +155,7 @@ class MacOSBuilder extends BuilderBase Patcher::patchPHPConfigure($this); if ($this->getLib('libxml2') || $this->getExt('iconv')) { - $extra_libs .= ' /Users/jerry/project/git-project/static-php-cli/buildroot/lib/libcrypto.a -liconv'; + $extra_libs .= ' -liconv'; } f_passthru( diff --git a/src/SPC/command/DeployCommand.php b/src/SPC/command/DeployCommand.php index ae13b76c..6fa990a2 100644 --- a/src/SPC/command/DeployCommand.php +++ b/src/SPC/command/DeployCommand.php @@ -84,7 +84,7 @@ class DeployCommand extends BaseCommand str_replace( '/../vendor/autoload.php', '/vendor/autoload.php', - file_get_contents(ROOT_DIR . '/bin/static-php-cli') + file_get_contents(ROOT_DIR . '/bin/spc') ) ); $stub = '.phar-entry.php';