#!/usr/bin/env bash
# Rebuild the self-contained smart-install bundle shipped inside the Windows package.
set -e
cd "$(dirname "$0")/.."
tar czf windows/smart-install.tar.gz --exclude='__pycache__' --exclude='*.bak*' \
  --exclude='state' --exclude='windows/smart-install.tar.gz' -C "$(pwd)" .
echo "built windows/smart-install.tar.gz ($(du -h windows/smart-install.tar.gz|cut -f1))"
