]>
git.saurik.com Git - apple/security.git/blob - certificates/ota_cert_tool/Scripts/BuildAsset.rb
5 # Copyright 2012 Apple Inc. All rights reserved.
10 build_dir
= ENV["BUILT_PRODUCTS_DIR"]
11 project_dir
= ENV["PROJECT_DIR"]
12 input_path
= File
.expand_path("~/tmp/asset_out")
13 output_path
= File
.join(build_dir
, "Asset")
14 script_path
= File
.join(project_dir
, "Scripts/File.rb")
15 staging_path
= File
.expand_path("~/tmp/staging")
16 asset_name
= "com_apple_MobileAsset_PKITrustServices_PKITrustData"
17 full_asset_path
= File
.join(staging_path
, asset_name
)
23 puts
"Creating the BuildPKIAsset instance"
24 b
= BuildPKIAsset
.new(input_path
, output_path
, staging_path
)
25 puts
"Calling stage on the BuildPKIAsset instance"
27 puts
"Calling stage on the BuildPKIAsset sign"
30 puts
"Finished with BuildPKIAsset"
32 puts
"build_dir = #{build_dir}"
33 puts
"full_asset_path = #{full_asset_path}"
35 FileUtils
.cp_r(full_asset_path
, build_dir
)
37 puts
"That's all folks!"