add build command

This commit is contained in:
sunxyw
2022-12-31 22:59:03 +08:00
parent c2c5433220
commit 85240c753b
5 changed files with 90 additions and 85 deletions

View File

@@ -21,12 +21,6 @@ else
fi
fi
result=$(echo "$1" | grep -E "module|build")
if [ "$result" != "" ]; then
executable="$executable -d phar.readonly=off"
fi
if [ -f "$(pwd)/src/entry.php" ]; then
$executable "$(pwd)/src/entry.php" $@
elif [ -f "$(pwd)/vendor/zhamao/framework/src/entry.php" ]; then

View File

@@ -13,7 +13,7 @@ IF /i "%ZM_CUSTOM_PHP_PATH%" neq "" (
echo "* Using system PHP executable"
SET executable=php
)
@REM TODO: Phar write support is missing
IF exist src/entry.php (
@REM Run the PHP entry point
%executable% src/entry.php %*