Initial commit

This commit is contained in:
Codex
2026-01-23 11:12:31 +01:00
commit 0c420a8697
27 changed files with 1767 additions and 0 deletions

25
client/package_client.bat Normal file
View 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.