#!/bin/bash ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )" cd $ROOT # deleting dist echo Deleting dist folder rm -rf $ROOT/dist &>/dev/null 2>&1 # build the .app echo Building OnionShare.app python setup.py py2app # codesign the .app