Skip to content

Instantly share code, notes, and snippets.

@micahpearlman
Created December 21, 2012 19:38
Show Gist options
  • Save micahpearlman/4355214 to your computer and use it in GitHub Desktop.
Save micahpearlman/4355214 to your computer and use it in GitHub Desktop.
Create a flattened bundle script for iOS
#!/bin/bash
# see: http://stackoverflow.com/questions/2578496/creating-my-own-bundle-in-xcode-for-iphone-application
echo "Building assets bundle."
if [ -d ./MyAssets.bundle ]; then
rm ./MyAssets.bundle/*
else
mkdir ./MyAssets.bundle
fi
find ./assets -type f -print0 | xargs -0 -J% cp % ./MyAssets.bundle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment