-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
32 lines (21 loc) · 720 Bytes
/
Copy pathbuild.bat
File metadata and controls
32 lines (21 loc) · 720 Bytes
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
@echo off
echo --- Build Headless Exec ---
echo Creating venv...
python3 -m venv .venv
echo Activating venv...
call .venv\Scripts\activate
echo Installing dependancies from requirements.txt...
pip install -r requirements.txt
echo Building...
pyinstaller -ycF -n "PylessDetective" --add-data "maps/*.csv;maps/" main.py
echo --- Build GUI Exec ---
echo Cleaning up stale venv...
rmdir /s /q .\.venv
echo Creating venv..
python3 -m venv .venv
echo Activating venv...
call .venv\Scripts\activate
echo Installing dependancies from requirements-gui.txt...
pip install -r requirements-gui.txt
echo Building...
pyinstaller -ywF -n "PylessDetectiveGui" --add-data "maps/*.csv;maps/" --add-data "main.py;main.py" gui.py