mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-27 14:07:03 +00:00
23 lines
507 B
Ruby
23 lines
507 B
Ruby
|
|
require 'objective-j'
|
|
require 'objective-j/bundletask'
|
|
|
|
if !ENV['CONFIG']
|
|
ENV['CONFIG'] = 'Debug'
|
|
end
|
|
|
|
$BLEND_PRODUCT = File.join('Build', ENV['CONFIG'], '__project.nameasidentifier__.blend');
|
|
|
|
file_d $BLEND_PRODUCT => ['ThemeDescriptors.j'] do
|
|
File.popen("blend -d ThemeDescriptors.j -o #{$BLEND_PRODUCT} -R Resources") do |blend|
|
|
blend.sync = true
|
|
|
|
while str = blend.gets
|
|
puts str
|
|
end
|
|
end
|
|
rake abort if ($? != 0)
|
|
end
|
|
|
|
task :default => [$BLEND_PRODUCT]
|