forked from continuedev/continue
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
26 lines (19 loc) · 647 Bytes
/
build.cmd
File metadata and controls
26 lines (19 loc) · 647 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
@echo off
REM 1. Remove unwanted stuff
rmdir /s /q build
rmdir /s /q env
rmdir /s /q dist
rmdir /s /q server\.venv
rmdir /s /q .tiktoken_cache
REM 2. Create a new virtual environment and activate it
python -m venv env
call env\Scripts\activate
REM 3. Install the required packages
pip install -r server\requirements.txt
pip install pyinstaller || exit /b 1
REM 4.5. Make .tiktoken_cache directory, used to package with tiktoken vocab file
mkdir .tiktoken_cache
REM 4. Call PyInstaller from within the virtual environment
env\Scripts\pyinstaller continue_server.spec
REM 5. Deactivate the virtual environment
call env\Scripts\deactivate.bat