lib/cocoapods-jxedt/command/binary/command/build.rb in cocoapods-jxedt-0.0.13 vs lib/cocoapods-jxedt/command/binary/command/build.rb in cocoapods-jxedt-0.0.14
- old
+ new
@@ -43,24 +43,24 @@
Jxedt.config.dsl_config.merge!(options)
require 'cocoapods-jxedt/binary/helper/target_definition'
require 'cocoapods-jxedt/binary/helper/prebuild_sandbox'
require 'cocoapods-jxedt/binary/helper/podfile_post_install_hook'
+ require 'cocoapods-jxedt/binary/helper/prebuild_installer'
# 获取原始的installer对象,必须先获取对象
- prebuild_sandbox = Pod::PrebuildSandbox.from_standard_sandbox(sandbox)
- source_installer = Pod::Installer.new(prebuild_sandbox, podfile, lockfile)
+ prebuild_sandbox = Pod::JxedtPrebuildSandbox.from_standard_sandbox(sandbox)
+ source_installer = Pod::JxedtPrebuildInstaller.new(prebuild_sandbox, podfile, lockfile)
# 执行install
source_installer.install!
# 保存首次`pod install`的lockfile结果,用来验证二进制文件和后面做结果校验
sandbox.source_lockfile = prebuild_sandbox.source_lockfile = source_installer.lockfile
require 'cocoapods-jxedt/binary/helper/podfile_options'
require 'cocoapods-jxedt/binary/prebuild'
# prebuild_job
- prebuild_sandbox.link_source_project!
log_section "🚀 Prebuild frameworks"
# 默认放在Pods源码工程同级目录下
@output_path = prebuild_sandbox.project_path.parent + '.command_build' if @output_path.nil?
build_targets = Jxedt::Prebuild.new(source_installer).build_targets :names => @names, :binary_output => @output_path
if @should_push && Jxedt.config.cache_repo_enabled?
\ No newline at end of file