[xcassets] Make asset compilation and app icon config work on OS X.

This commit is contained in:
Eloy Durán
2013-10-11 18:50:12 +02:00
parent bbae733e02
commit 369c15e0e3
4 changed files with 50 additions and 24 deletions

View File

@@ -332,5 +332,15 @@ EOS
end
xcassets_bundles
end
def app_icons_asset_bundle
app_icons_asset_bundles = xcassets_bundles.map { |b| Dir.glob(File.join(b, '*.appiconset')) }.flatten
if app_icons_asset_bundles.size > 1
App.warn "Found #{app_icons_asset_bundles.size} AppIcon sets across all " \
"xcasset bundles. Only the first one (alphabetically) " \
"will be used."
end
app_icons_asset_bundles.sort.first
end
end
end; end