pindo 4.8.6 → 4.8.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7602974c19aabb025aceb56f2f2c4580939a4648654b9074e7aaf7b4649b366
4
- data.tar.gz: 9a7338f72073b9728753134ac626678795e890faf5e11361dc8cace4a0d947a5
3
+ metadata.gz: 24b5673e6e6b22077a55006939dc549e2b545537d935c6a004bed385dd936014
4
+ data.tar.gz: 699659aa13cff6c29fd5cbf63ba1a16707cb1ba6e8811f913094c968d4fcd09a
5
5
  SHA512:
6
- metadata.gz: 3aafd84653797ddd17f31e549ff714974e8329211cb7ae5cd28ad65946586f57ae62e6587c7204bb48f4f7507bb1097fba0203df8d8a0491e1a0d2623e9cee7a
7
- data.tar.gz: 84ee12d99b2c71f249ac382f9f5e11d0bc149e5e064ef8c7b362c654d7fa4144b751da586e84d375911686c5eec0fd174cbda6a1b2b5626d6b054c159f5b6e03
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
- name_temp = Match::Utils.environment_variable_name_profile_name(app_identifier: bundle_id_temp, type: build_type, platform:platform_type)
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: build_type, platform:platform_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: build_type, platform:platform_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:build_type, platform:platform_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
- cert_sub_dir = "developer_id_application"
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, "#{cert_type}.p12"))
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 = [provision_start_name, platform_type, bundle_id].join("_")
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
@@ -1,6 +1,6 @@
1
1
  module Pindo
2
2
 
3
- VERSION = "4.8.6"
3
+ VERSION = "4.8.7"
4
4
 
5
5
  class VersionCheck
6
6
 
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.6
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-24 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide