lib/cocoapods-imy-bin/command/bin/auto.rb in cocoapods-imy-bin-0.2.5 vs lib/cocoapods-imy-bin/command/bin/auto.rb in cocoapods-imy-bin-0.2.6
- old
+ new
@@ -17,10 +17,11 @@
['--allow-prerelease', '允许使用 prerelease 的版本'],
['--no-clean', '保留构建中间产物'],
['--framework-output', '输出framework文件'],
['--no-zip', '不压缩静态 framework 为 zip'],
['--all-make', '对该组件的依赖库,全部制作为二进制组件'],
+ ['--configuration', 'Build the specified configuration (e.g. Debug). Defaults to Release'],
['--env', "该组件上传的环境 %w[dev debug_iphoneos release_iphoneos]"]
]
end
def initialize(argv)
@@ -36,10 +37,13 @@
@framework_output = argv.flag?('framework-output', false )
@clean = argv.flag?('clean', true)
@zip = argv.flag?('zip', true)
@all_make = argv.flag?('all-make', false )
@verbose = argv.flag?('verbose',true)
+
+ @config = argv.option('configuration', 'Release')
+
super
end
def run
@@ -111,10 +115,10 @@
argvs += ['--all-make']
end
if @env
argvs += ["--env=#{@env}"]
end
-
+ argvs += ["--configuration=#{@config}"]
archive = Pod::Command::Bin::Archive.new(CLAide::ARGV.new(argvs))
archive.validate!
sources_sepc = archive.run
sources_sepc