-
Notifications
You must be signed in to change notification settings - Fork 0
/
windows-installer.bat
23 lines (17 loc) · 1.1 KB
/
windows-installer.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo OFF
@echo ############################################################
@echo # INSTALLING STARS... PLEASE WAIT #
@echo ############################################################
@echo [+] Installing virtual env...
python -m pip install --disable-pip-version-check pip
python -m pip install --disable-pip-version-check virtualenv
IF %ERRORLEVEL% == 9009 (
@echo [*] ERROR: IT SEEMS THAT PYTHON IS NOT INSTALLED. INSTALL PYTHON AND RETRY...
GOTO END
)
@echo [+] Creating a new venv...
python -m venv venv
@echo [+] Activating venv...
cmd /k "cd /d venv\Scripts & activate & cd /d ../../ & @echo [+] Installing the required packages... & pip install --disable-pip-version-check -r requirements.txt & @echo [+] Creating the executable... & pyinstaller --onefile src/main.py -n STARS --icon src/bilkent-logo.ico --log-level ERROR & @echo [+] Cleaning up... & cd /d venv\Scripts & deactivate & cd /d ../../ & rmdir /S /Q build & rmdir /S /Q venv & del STARS.spec & cd src & rmdir /S /Q __pycache__ & @echo [*] STARS WAS SUCCESSFULY INSTALLED! NOW YOU MAY CLOSE THIS WINDOW."
:END
pause