19 lines
397 B
Bash
Executable File
19 lines
397 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
DIST_DIR="dist/BackupClient"
|
|
PYINSTALLER_ARGS=(
|
|
"--onefile"
|
|
"--add-data" "config.json;."
|
|
"--add-data" "scheduler;scheduler"
|
|
"src/__main__.py"
|
|
)
|
|
|
|
cd "client"
|
|
python -m PyInstaller "${PYINSTALLER_ARGS[@]}"
|
|
if [ ! -d "${DIST_DIR}" ]; then
|
|
echo "ERROR: expected dist directory ${DIST_DIR} not created"
|
|
exit 1
|
|
fi
|
|
"$(pwd)/post_build.bat" "${DIST_DIR}"
|