Skip to content

Commit 2262741

Browse files
authored
Use xcopy to copy files on windows (#112)
1 parent 93fede6 commit 2262741

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Makefile

+8-7
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ install: .venv/pyvenv.cfg frontend/node_modules
5353
ifeq ($(OS), Windows_NT)
5454
build: .venv/pyvenv.cfg frontend/node_modules
5555
$(PYTHON) -m PyInstaller -n tf2-gptcb --noconfirm --icon icon.ico -w $(EXTRA_PYINSTALLER_FLAGS) main.py
56-
$(CP) cfg dist\tf2-gptcb/cfg
57-
$(CP) icon.png dist\tf2-gptcb
58-
$(CP) commands.yaml dist\tf2-gptcb
59-
mkdir dist\tf2-gptcb/logs
60-
$(CP) prompts dist\tf2-gptcb\prompts
61-
$(CP) schemas dist\tf2-gptcb\schemas
56+
xcopy cfg dist\tf2-gptcb\cfg /E /I /Y
57+
xcopy icon.png dist\tf2-gptcb /Y
58+
xcopy commands.yaml dist\tf2-gptcb /Y
59+
mkdir dist\tf2-gptcb\logs
60+
xcopy prompts dist\tf2-gptcb\prompts /E /I /Y
61+
xcopy schemas dist\tf2-gptcb\schemas /E /I /Y
6262

6363
cd frontend
6464
npm run pack
@@ -93,8 +93,9 @@ format: .venv/pyvenv.cfg
9393
# Install .venv for python
9494
.venv/pyvenv.cfg: requirements.txt
9595
python -m venv .venv
96+
$(PYTHON) -m pip install uv
9697
$(PYTHON) -m pip install --upgrade pip
97-
$(PYTHON) -m pip install -r requirements.txt
98+
$(PYTHON) -m uv pip install -r requirements.txt
9899

99100
# Install node_modules
100101
frontend/node_modules: frontend/package.json

0 commit comments

Comments
 (0)