[Update] Build scripts and configuration: Added new build and install scripts, updated versioning in config files, and improved project structure.
This commit is contained in:
2
bat/build.bat
Normal file
2
bat/build.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
call .venv/Scripts/activate
|
||||
pyinstaller spec/backend.spec --distpath src-tauri/bin --clean --noconfirm --log-level ERROR
|
||||
2
bat/build_cuda.bat
Normal file
2
bat/build_cuda.bat
Normal file
@@ -0,0 +1,2 @@
|
||||
call .venv_cuda/Scripts/activate
|
||||
pyinstaller spec/backend_cuda.spec --distpath src-tauri/bin --clean --noconfirm --log-level ERROR
|
||||
25
bat/install.bat
Normal file
25
bat/install.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
REM .venv exists
|
||||
if exist .venv (
|
||||
rmdir /s /q .venv
|
||||
)
|
||||
|
||||
REM make .venv
|
||||
python -m venv .venv
|
||||
|
||||
REM install packages for .venv
|
||||
call .venv/Scripts/activate
|
||||
python.exe -m pip install --upgrade pip
|
||||
pip install --no-cache-dir --force-reinstall -r requirements.txt
|
||||
|
||||
REM if .venv_cuda exists
|
||||
if exist .venv_cuda (
|
||||
rmdir /s /q .venv_cuda
|
||||
)
|
||||
|
||||
REM make .venv_cuda
|
||||
python -m venv .venv_cuda
|
||||
|
||||
REM install packages for .venv_cuda
|
||||
call .venv_cuda/Scripts/activate
|
||||
python.exe -m pip install --upgrade pip
|
||||
pip install --no-cache-dir --force-reinstall -r requirements_cuda.txt
|
||||
Reference in New Issue
Block a user