phar打包報錯
/usr/local/php_static/php8.1/php webman build:bin 8.1.15
Phar::buildFromDirectory(): Read of 8192 bytes failed with errno=21 Is a directory
/usr/local/php_static/php8.1/php webman build:bin 8.1.15
這里寫具體的系統(tǒng)環(huán)境相關信息
Webman-framework v1.5.1
webman/console v1.2.24
<?php
return [
'enable' => true,
'build_dir' => BASE_PATH . DIRECTORY_SEPARATOR . 'build',
'phar_filename' => 'webman.phar',
'bin_filename' => 'webman.bin',
'signature_algorithm'=> Phar::SHA256, //set the signature algorithm for a phar and apply it. The signature algorithm must be one of Phar::MD5, Phar::SHA1, Phar::SHA256, Phar::SHA512, or Phar::OPENSSL.
'private_key_file' => '', // The file path for certificate or OpenSSL private key file.
'exclude_pattern' => '#^(?!.*(composer.json|/.github/|/.idea/|/.git/|/.setting/|/.idea/|/runtime/|/vendor-bin/|/build/|vendor/webman/admin))(.*)$#',
'exclude_files' => [
'.env', 'LICENSE', 'composer.json', 'composer.lock', 'start.php', 'webman.phar', 'webman.bin', '.DS_Store', '.gitignore'
]
];