finalized
This commit is contained in:
48
start.cmd
Normal file
48
start.cmd
Normal file
@@ -0,0 +1,48 @@
|
||||
: <<'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
|
||||
Reference in New Issue
Block a user