Journey's End

Jun 09
2010

2010-06-09

PRODUCT_NAME=""
IPA="\\({PRODUCT_NAME}.ipa"</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">APP="\\).app"


if [ -z "\\({PRODUCT_NAME}" \]; then</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">        echo "PRODUCT_NAME not set";</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">        exit 1;</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">fi</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;"> </span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">rm -rf ipa</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">mkdir -p ipa/Payload &&</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">cp -R build/Debug-iphoneos/\\) ipa/Payload/ &&
pushd ipa &&
zip -q --symlinks -r \\({IPA} Payload/ &&</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">mkdir test/ &&</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">cp \\) test &&
cd test &&
unzip -q \\({IPA} &&</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">cd Payload/ &&</span> <span class="Apple-style-span" style="font-family: 'Courier New', Courier, monospace;">codesign --verify --verbose \\) &&
popd
open ipa/

Cheers,
Steve

ts=04:35