added build bootstrap files for *nix and DOS

This commit is contained in:
Jeff Poirier 2024-08-21 01:16:56 +00:00
parent 49c9fef4df
commit 00e8822809
2 changed files with 40 additions and 0 deletions

20
build.bat Normal file
View file

@ -0,0 +1,20 @@
@echo off
echo.
echo ____ _ ______ __
echo / __ \(_) _____ / / __/__ ____/ /
echo / /_/ / / ^|/_/ _ \/ / /_/ _ \/ __ /
echo / ____/ /^> ^</ __/ / __/ __/ /_/ /
echo /_/ /_/_/^|_^|\___/_/_/ \___/\__,_/
echo ------------- build process -----------
echo.
WHERE php >nul 2>nul
IF %ERRORLEVEL% NEQ 0 (
echo !!! PHP command-line executable was not found in the current path.
echo It is required in order to build Pixelfed.
echo.
exit 255
)
php ./vendor/phing/phing/bin/phing %*

20
build.sh Executable file
View file

@ -0,0 +1,20 @@
#!/bin/bash
echo ""
echo " ____ _ ______ __ "
echo " / __ \(_) _____ / / __/__ ____/ / "
echo " / /_/ / / |/_/ _ \/ / /_/ _ \/ __ / "
echo " / ____/ /> </ __/ / __/ __/ /_/ / "
echo " /_/ /_/_/|_|\___/_/_/ \___/\__,_/ "
echo " ------------- build process ----------- "
echo ""
if [ ! -P "php" ]
then
echo "!!! PHP command-line executable was not found in the current path."
echo " It is required in order to build Pixelfed."
echo ""
exit 255
fi
php ./vendor/phing/phing/bin/phing "$@"