mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-15 12:13:48 +08:00
26 lines
411 B
Ruby
26 lines
411 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
|
|
end
|
|
|
|
def build(platform)
|
|
builder.build(config, platform)
|
|
end
|
|
|
|
def codesign(platform)
|
|
builder.codesign(config, platform)
|
|
end
|
|
end
|
|
end
|
|
end
|