Update build.bat

This commit is contained in:
What about KSCH 2022-10-30 19:09:40 +01:00 committed by GitHub
parent 3bcc897ea0
commit f598d0fb05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 28 deletions

View File

@ -1,29 +1,4 @@
@echo off
color 0a
echo.
set /p a="Enter the exe name : "
if [%a%]==[] (
CALL:error
pause
EXIT /B
)
if [%a%] NEQ [] (
CALL:main
EXIT /B 1
)
ECHO is on
:main
echo.
echo Name is: %a%
pyinstaller --clean --key BLACKCAP --onefile --noconsole -i NONE -n %a% index.py
rmdir /s /q __pycache__
rmdir /s /q build
del /f / s /q %a%.spec
echo.
echo generated exe as %a%.exe
EXIT /B 1
ECHO is on
:error
echo.
echo bro enter a name
EXIT /B 1
title BlackCap Builder v2.1
python builder.py
pause