49 lines
1.1 KiB
Batchfile
49 lines
1.1 KiB
Batchfile
: <<'BATCH'
|
|
@echo off
|
|
setlocal
|
|
cd /d "%~dp0"
|
|
|
|
echo Starting Docker Compose...
|
|
docker compose up -d --build
|
|
if errorlevel 1 (
|
|
echo Docker Compose failed.
|
|
exit /b 1
|
|
)
|
|
|
|
echo Running Windows post-setup script...
|
|
call "%~dp0shell\win.cmd"
|
|
endlocal
|
|
exit /b
|
|
BATCH
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
|
|
|
|
echo "Starting Docker Compose..."
|
|
docker compose up -d --build
|
|
|
|
case "$(uname -s 2>/dev/null | tr '[:upper:]' '[:lower:]')" in
|
|
darwin*)
|
|
echo "Running macOS post-setup script..."
|
|
bash "$SCRIPT_DIR/shell/mac.sh"
|
|
;;
|
|
linux*)
|
|
echo "Running Linux post-setup script..."
|
|
bash "$SCRIPT_DIR/shell/linux.sh"
|
|
;;
|
|
mingw*|msys*|cygwin*|win*)
|
|
echo "Running Windows post-setup script..."
|
|
if command -v cygpath >/dev/null 2>&1; then
|
|
WIN_DIR=$(cygpath -w "$SCRIPT_DIR")
|
|
else
|
|
WIN_DIR=$SCRIPT_DIR
|
|
fi
|
|
cmd.exe /c "\"$WIN_DIR\\shell\\win.cmd\""
|
|
;;
|
|
*)
|
|
echo "Running Linux post-setup script..."
|
|
bash "$SCRIPT_DIR/shell/linux.sh"
|
|
;;
|
|
esac
|