alpha v0.945
This commit is contained in:
@@ -2,16 +2,29 @@
|
||||
setlocal
|
||||
|
||||
cd /d "%~dp0"
|
||||
set "SPEC_FILE=client_agent_windows_onefile.spec"
|
||||
set "OUTPUT_EXE=dist\inventory_client_agent.exe"
|
||||
set "ICON_FILE=picture\ICON\clientICO.ico"
|
||||
|
||||
echo Installing PyInstaller...
|
||||
py -m pip install --upgrade pip pyinstaller
|
||||
if errorlevel 1 (
|
||||
echo Failed to install PyInstaller.
|
||||
if not exist "%SPEC_FILE%" (
|
||||
echo Spec file not found: %SPEC_FILE%
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Building inventory_client_agent.exe...
|
||||
py -m PyInstaller --clean --noconfirm client_agent_windows_onefile.spec
|
||||
if not exist "%ICON_FILE%" (
|
||||
echo Icon file not found: %ICON_FILE%
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Installing build dependencies...
|
||||
py -m pip install --upgrade pip pyinstaller pystray pillow
|
||||
if errorlevel 1 (
|
||||
echo Failed to install build dependencies.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
echo Building inventory_client_agent.exe from %SPEC_FILE%...
|
||||
py -m PyInstaller --clean --noconfirm "%SPEC_FILE%"
|
||||
if errorlevel 1 (
|
||||
echo Build failed.
|
||||
exit /b 1
|
||||
@@ -19,5 +32,5 @@ if errorlevel 1 (
|
||||
|
||||
echo.
|
||||
echo Done.
|
||||
echo EXE path: %~dp0dist\inventory_client_agent.exe
|
||||
echo EXE path: %~dp0%OUTPUT_EXE%
|
||||
exit /b 0
|
||||
|
||||
Reference in New Issue
Block a user