Initial commit
This commit is contained in:
25
client/package_client.bat
Normal file
25
client/package_client.bat
Normal file
@@ -0,0 +1,25 @@
|
||||
@echo off
|
||||
REM Usage: package_client.bat
|
||||
setlocal enabledelayedexpansion
|
||||
pushd "%~dp0"
|
||||
set PYINSTALLER_ARGS=--onefile --add-data config.json;. --add-data scheduler;scheduler src/__main__.py
|
||||
python -m PyInstaller %PYINSTALLER_ARGS%
|
||||
if errorlevel 1 (
|
||||
echo PyInstaller failed
|
||||
popd
|
||||
exit /b 1
|
||||
)
|
||||
set DIST_DIR=dist\BackupClient
|
||||
if not exist "%DIST_DIR%" (
|
||||
echo ERROR: expected %DIST_DIR% not created
|
||||
popd
|
||||
exit /b 1
|
||||
)
|
||||
"%CD%\post_build.bat" "%DIST_DIR%"
|
||||
if errorlevel 1 (
|
||||
echo post_build failed
|
||||
popd
|
||||
exit /b 1
|
||||
)
|
||||
popd
|
||||
echo Packaging complete.
|
||||
Reference in New Issue
Block a user