#!/bin/bash # Build AgentCheckin.fpk from source. set -e cd "$(dirname "$0")" echo "== cleaning pycache/devdata ==" find AgentCheckin -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true rm -rf AgentCheckin/devdata AgentCheckin/var echo "== regenerating icons ==" python3 genicon.py echo "== building fpk ==" cd AgentCheckin fnpack build cd .. ls -la AgentCheckin/AgentCheckin.fpk echo "== verifying package ==" tar tzf AgentCheckin/AgentCheckin.fpk | grep -c pycache && echo "WARN: pycache in package" || echo "OK: no pycache" tar tzf AgentCheckin/AgentCheckin.fpk | grep -E "index.cgi|manifest|main$|daemon.py|api.py"