mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-23 04:20:24 +08:00
27 lines
435 B
Ruby
27 lines
435 B
Ruby
module Motion
|
|
class App
|
|
class << self
|
|
def config
|
|
@config ||= Motion::Config.new('.')
|
|
end
|
|
|
|
def builder
|
|
@builder ||= Motion::Builder.new
|
|
end
|
|
|
|
def setup
|
|
yield config
|
|
config.validate
|
|
end
|
|
|
|
def build(platform)
|
|
builder.build(config, platform)
|
|
end
|
|
|
|
def codesign(platform)
|
|
builder.codesign(config, platform)
|
|
end
|
|
end
|
|
end
|
|
end
|