#!/bin/bash

#set -e

rm -rf build
mkdir ipas
mkdir -p build/Payload
/usr/bin/xcodebuild -target meridianTV BUILD_ROOT=build | xcpretty
cp -a ./build/Release-appletvos/meridianTV.app ./build/Payload/meridianTV.app
cd ./build && zip -x .DS_Store -qr9 ../backr00m.ipa Payload
