mkdir -p "$TARGET_BUILD_DIR/$TARGET_NAME.app/Contents/$TARGET_NAME/$TARGET_NAME.app/Contents" cd "$TARGET_BUILD_DIR/$TARGET_NAME.app/Contents/$TARGET_NAME/$TARGET_NAME.app/Contents" for i in `ls ../../.. | grep -v Info.plist | grep -v $TARGET_NAME` do ln -s "../../../$i" done cp ../../../Info.plist . defaults write "$TARGET_BUILD_DIR/$TARGET_NAME.app/Contents/$TARGET_NAME/$TARGET_NAME.app/Contents/Info" LSUIElement 1 chmod 666 "$TARGET_BUILD_DIR/$TARGET_NAME.app/Contents/$TARGET_NAME/$TARGET_NAME.app/Contents/Info.plist"