@echo off
setlocal EnableExtensions
chcp 65001 >nul
cd /d "%~dp0"
title OnlyCoin - Canli Sunucu ve Kurulum

call "%CD%\scripts\resolve-node.cmd"
if errorlevel 1 goto :failed

"%NODE_EXE%" --no-warnings "%CD%\scripts\start.js"
if errorlevel 1 goto :failed
exit /b 0

:failed
echo.
echo =========================================================
echo ONLYCOIN BASLATILAMADI
echo Yukaridaki hata metnini kontrol edin.
echo Canli veritabani otomatik olarak silinmez veya sifirlanmaz.
echo TANI-WINDOWS.bat ve VERITABANI-KONTROL-WINDOWS.bat kullanabilirsiniz.
echo =========================================================
pause
exit /b 1
