mirror of
https://github.com/Yuukiy/JavSP.git
synced 2026-10-18 23:01:04 +08:00
24 lines
490 B
Batchfile
24 lines
490 B
Batchfile
@echo off
|
|
REM Create exe from script
|
|
|
|
set activate=venv\Scripts\activate.bat
|
|
set deactivate=venv\Scripts\deactivate.bat
|
|
set ps_script=make\archive.ps1
|
|
|
|
IF EXIST %activate% (
|
|
@echo Activate vitualenv...
|
|
call %activate%
|
|
)
|
|
|
|
echo JavSP version:
|
|
python make\gen_ver_hook.py ver_hook.py
|
|
pyinstaller --clean --noconfirm make\windows.spec
|
|
|
|
IF EXIST %ps_script% (
|
|
powershell -executionPolicy bypass -file %ps_script%
|
|
del %ps_script%
|
|
)
|
|
del ver_hook.py
|
|
del dist\config.ini 2>nul
|
|
rmdir /s /q build
|