lib/cocoapods-mtxx-bin/command/bin/upload.rb in cocoapods-mtxx-bin-0.0.13 vs lib/cocoapods-mtxx-bin/command/bin/upload.rb in cocoapods-mtxx-bin-1.0.0
- old
+ new
@@ -37,11 +37,11 @@
@name = argv.shift_argument
@version = argv.shift_argument
@file = argv.shift_argument
@repo = argv.shift_argument
@spec = argv.option('spec', nil)
- @xcode_version = BinHelper.xcode_version
+ @xcode_version = CBin::BuildAll::BinHelper.xcode_version
super
end
def run
# 参数检查
@@ -126,10 +126,10 @@
end
end
def source
url = "#{CBin.config.binary_download_url_str}/#{@xcode_version}/#{@name}/#{@version}/#{zip_file_name}"
- { http: url, type: 'zip' }
+ { http: url, type: CBin.config.download_file_type }
end
# 上传podspec
def upload_spec
UI.title "推送podspec:`#{podspec_json_file_name}`".yellow do