OK
This commit is contained in:
@@ -3,6 +3,7 @@ setlocal
|
||||
|
||||
set "PYTHON_EXE=C:\Users\Administrator\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe"
|
||||
set "PYINSTALLER_PATH=%CD%\.packaging\pyinstaller"
|
||||
set "APP_ICON=%CD%\assets\app.ico"
|
||||
|
||||
if exist "%PYTHON_EXE%" (
|
||||
if not exist "%PYINSTALLER_PATH%\PyInstaller\__main__.py" (
|
||||
@@ -10,9 +11,9 @@ if exist "%PYTHON_EXE%" (
|
||||
if errorlevel 1 exit /b 1
|
||||
)
|
||||
set "PYTHONPATH=%PYINSTALLER_PATH%"
|
||||
"%PYTHON_EXE%" -m PyInstaller -F -w main.py -n NetworkTool
|
||||
"%PYTHON_EXE%" -m PyInstaller -F -w main.py -n NetworkTool --icon "%APP_ICON%"
|
||||
) else (
|
||||
pyinstaller -F -w main.py -n NetworkTool
|
||||
pyinstaller -F -w main.py -n NetworkTool --icon "%APP_ICON%"
|
||||
)
|
||||
|
||||
endlocal
|
||||
|
||||
Reference in New Issue
Block a user