Initial commit
This commit is contained in:
18
client/package_client.sh
Executable file
18
client/package_client.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user