forked from RenolY2/mkdd-track-patcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.bat
29 lines (23 loc) · 751 Bytes
/
setup.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
rem Create and enter a temporary directory.
cd %TMP%
IF EXIST MKDDP_BUNDLE_TMP rmdir /s /q MKDDP_BUNDLE_TMP
mkdir MKDDP_BUNDLE_TMP
cd MKDDP_BUNDLE_TMP
rem Create a virtual environment.
set PYTHONNOUSERSITE=1
set "PYTHONPATH="
python -m venv venv
call venv/Scripts/activate.bat
rem Install cx_Freeze and its dependencies.
python -m pip install -r requirements-build-windows.txt
rem Retrieve a fresh checkout from the repository to avoid a potentially
rem polluted local checkout.
git clone https://github.com/RenolY2/mkdd-track-patcher.git
cd mkdd-track-patcher
rem Install the application's dependencies.
python -m pip install -r requirements.txt
rem Build the bundle.
python setup.py build
rem Open directory in file explorer.
cd build
start .