#!/bin/bash
set -e
cd $(dirname $0)
rm -rf stitch_src stitch_bin
mkdir -p stitch_src/src/stitch
touch stitch_src/src/__init__.py stitch_src/src/stitch/__init__.py
cp src/{stitch,utils}.py stitch_src/src
cp src/stitch/Abstractions.py stitch_src/src/stitch
cd stitch_src
#cxfreeze build_exe --target-dir ../stitch_bin --script src/stitch.py -e IPython
#cxfreeze bdist_appimage --build-dir ../stitch_bin --dist-dir  ../stitch_dist --script src/stitch.py
cd ..
#rm -rf stitch_src
