forked from IUrreta/DatabaseEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.bat
38 lines (30 loc) · 795 Bytes
/
run.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
@echo off
REM Ejecutar server.py en la carpeta "back" usando Python
for %%I in ("%CD%") do set "last_folder=%%~nI"
if "%last_folder%" NEQ "launcher" (
cd launcher
)
set /p version=<version.conf
echo Version: %version%
cd ..
cd back
if not exist "DBEditor" (
echo No virtual environment found, creating one...
python -m venv DBEditor
echo Virtual environment created.
) else (
echo Virtual enviorment found.
)
call DBEditor\Scripts\activate
if exist "requirements.txt" (
echo Installing requirements...
pip install -r requirements.txt
) else (
echo requirements.txt not found.
)
start "" /B python back.py
cd ../
REM Instalar las dependencias y ejecutar "npm start" en la carpeta actual
call npm install --no-audit
call npm start
taskkill /F /IM python.exe