fix install script not respect composer path (#296)

This commit is contained in:
sunxyw
2023-02-11 19:54:18 +08:00
committed by GitHub
parent 6b7a2e8858
commit 78977e58e4

View File

@@ -240,7 +240,7 @@ function install_framework() {
$composer_executable init --name="zhamao/zhamao-v3-app" -n -q && \ $composer_executable init --name="zhamao/zhamao-v3-app" -n -q && \
if_use_aliyun && \ if_use_aliyun && \
echo "$(nhead) 从 Composer 拉取框架 ..." && \ echo "$(nhead) 从 Composer 拉取框架 ..." && \
echo '{"minimum-stability":"dev","prefer-stable":true}' > composer.json && composer require -n zhamao/framework:^3.0 && \ echo '{"minimum-stability":"dev","prefer-stable":true}' > composer.json && $composer_executable require -n zhamao/framework:^3.0 && \
$composer_executable require -n --dev swoole/ide-helper:^4.5 && \ $composer_executable require -n --dev swoole/ide-helper:^4.5 && \
if_restore_native_runtime && \ if_restore_native_runtime && \
echo "$(nhead) 初始化框架脚手架文件 ..." && \ echo "$(nhead) 初始化框架脚手架文件 ..." && \