pindo 4.8.6 → 4.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pindo/module/cert/xcodecerthelper.rb +29 -15
- data/lib/pindo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24b5673e6e6b22077a55006939dc549e2b545537d935c6a004bed385dd936014
|
4
|
+
data.tar.gz: 699659aa13cff6c29fd5cbf63ba1a16707cb1ba6e8811f913094c968d4fcd09a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ae0851cb8497f852602e3fe26c49f6a1e69e0ba922c44833cf43abe12c186b6d1fec343ac29c3d62c1299c841dda8b0a0782caec8c952885a2fb9c1b0bd4805
|
7
|
+
data.tar.gz: 7ba1a294c60d4d1633e0f136a04d24712f7b01aec7c0702e890b8d7325e0261497897a67fbe55e1a9f63faaec566e70e8f98d52081c75c134bfbd3bd6953077a
|
@@ -34,15 +34,23 @@ module Pindo
|
|
34
34
|
provisioning_info = {}
|
35
35
|
provisioning_info['type'] = type
|
36
36
|
provisioning_info['bundle_id'] = bundle_id_temp
|
37
|
-
|
37
|
+
|
38
|
+
|
39
|
+
match_build_type = build_type
|
40
|
+
if platform_type.downcase.include?("macos") && match_build_type.downcase.include?("adhoc")
|
41
|
+
match_build_type = "developer_id"
|
42
|
+
end
|
43
|
+
|
44
|
+
name_temp = Match::Utils.environment_variable_name_profile_name(app_identifier: bundle_id_temp, type: match_build_type, platform:platform_type)
|
38
45
|
provisioning_info['profile_name'] = ENV[name_temp]
|
39
|
-
path_temp = Match::Utils.environment_variable_name_profile_path(app_identifier:bundle_id_temp,type:
|
46
|
+
path_temp = Match::Utils.environment_variable_name_profile_path(app_identifier:bundle_id_temp,type: match_build_type, platform:platform_type)
|
40
47
|
provisioning_info['profile_path'] = ENV[path_temp]
|
41
|
-
signing_identity_key=Match::Utils.environment_variable_name_certificate_name(app_identifier: bundle_id_temp,type:
|
48
|
+
signing_identity_key=Match::Utils.environment_variable_name_certificate_name(app_identifier: bundle_id_temp,type: match_build_type, platform:platform_type)
|
42
49
|
provisioning_info["signing_identity"] = ENV[signing_identity_key]
|
43
|
-
team_id_key = Match::Utils.environment_variable_name_team_id(app_identifier: bundle_id_temp,type:
|
50
|
+
team_id_key = Match::Utils.environment_variable_name_team_id(app_identifier: bundle_id_temp,type:match_build_type, platform:platform_type)
|
44
51
|
provisioning_info["team_id"] = ENV[team_id_key]
|
45
52
|
provisioning_info_array << provisioning_info
|
53
|
+
|
46
54
|
end
|
47
55
|
|
48
56
|
|
@@ -299,7 +307,7 @@ module Pindo
|
|
299
307
|
if !File.exist?(cert_dest_dir)
|
300
308
|
FileUtils.mkdir_p(cert_dest_dir)
|
301
309
|
end
|
302
|
-
|
310
|
+
cert_type_temp = cert_type
|
303
311
|
cert_sub_dir = cert_type.downcase
|
304
312
|
if platform_type.downcase.eql?("macos")
|
305
313
|
if cert_type.downcase.include?("development")
|
@@ -307,7 +315,8 @@ module Pindo
|
|
307
315
|
elsif cert_type.downcase.eql?("appstore")
|
308
316
|
cert_sub_dir = "distribution"
|
309
317
|
else
|
310
|
-
|
318
|
+
cert_type_temp = "developer_id"
|
319
|
+
cert_sub_dir = "developer_id_application"
|
311
320
|
end
|
312
321
|
else
|
313
322
|
if !cert_type.downcase.include?("development")
|
@@ -332,7 +341,7 @@ module Pindo
|
|
332
341
|
raise Informative, "证书解析失败,密码错误!"
|
333
342
|
end
|
334
343
|
|
335
|
-
FileUtils.copy(key_path, File.join(cert_dest_dir, "#{
|
344
|
+
FileUtils.copy(key_path, File.join(cert_dest_dir, "#{cert_type_temp}.p12"))
|
336
345
|
|
337
346
|
end
|
338
347
|
|
@@ -381,20 +390,15 @@ module Pindo
|
|
381
390
|
account_cert_set["certs"].delete_if { |x| x["cert_id"].eql?(bundle_id_signing_identity)}
|
382
391
|
end
|
383
392
|
|
384
|
-
cert_item["cert_id"] = cert_item["cert_id"] || bundle_id_signing_identity
|
385
|
-
cert_item["password"] = "goodcert1"
|
386
|
-
cert_item["cert_file"] = "#{cert_type}.p12"
|
387
|
-
cert_item["cert_type"] = cert_type
|
388
|
-
cert_item["cert_provisioning_group"] = cert_item["cert_provisioning_group"] || []
|
389
|
-
|
390
|
-
|
391
393
|
provision_start_name = "Development"
|
394
|
+
cert_type_temp = cert_type
|
392
395
|
if platform_type.downcase.include?("macos")
|
393
396
|
if cert_type.downcase.include?("development")
|
394
397
|
provision_start_name = "development"
|
395
398
|
elsif cert_type.downcase.eql?("appstore")
|
396
399
|
provision_start_name = "appstore"
|
397
400
|
else
|
401
|
+
cert_type_temp = "developer_id"
|
398
402
|
provision_start_name = "direct"
|
399
403
|
end
|
400
404
|
else
|
@@ -407,8 +411,17 @@ module Pindo
|
|
407
411
|
end
|
408
412
|
end
|
409
413
|
|
414
|
+
cert_item["cert_id"] = cert_item["cert_id"] || bundle_id_signing_identity
|
415
|
+
cert_item["password"] = "goodcert1"
|
416
|
+
cert_item["cert_file"] = "#{cert_type_temp}.p12"
|
417
|
+
cert_item["cert_type"] = cert_type_temp
|
418
|
+
cert_item["cert_provisioning_group"] = cert_item["cert_provisioning_group"] || []
|
419
|
+
|
420
|
+
|
421
|
+
|
422
|
+
|
410
423
|
cert_provisioning_group_item = {}
|
411
|
-
provisioning_group_id = [
|
424
|
+
provisioning_group_id = [cert_type_temp, platform_type, bundle_id].join("_")
|
412
425
|
|
413
426
|
provisioning_group_result = cert_item["cert_provisioning_group"].select { |x| x["provisioning_group_id"].eql?(provisioning_group_id)}.first
|
414
427
|
if provisioning_group_result.nil?
|
@@ -432,6 +445,7 @@ module Pindo
|
|
432
445
|
bundle_id_temp = provisioning_info['bundle_id']
|
433
446
|
provisioning_id = [provision_start_name, bundle_id_temp].join("_")
|
434
447
|
real_path = provisioning_info["profile_path"]
|
448
|
+
|
435
449
|
extname = File.extname(real_path)
|
436
450
|
cert_provisioning_group_item["provisioning_items"] << {
|
437
451
|
"bundle_id" => bundle_id_temp,
|
data/lib/pindo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pindo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.8.
|
4
|
+
version: 4.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- wade
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: claide
|