yptools 1.0.12 → 1.0.13

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: '098816af79df22f9f807883a7beb32d93173ebeb30b24d04403d950d5e978ebd'
4
- data.tar.gz: aeb93d558104c3ec22cf0c289e378e57cb33d1003935669d043122b2bf6b4340
3
+ metadata.gz: 276c61f364337b2cc8b8722c6060df1a87d5643634d15cf5c84e6e1850492a4d
4
+ data.tar.gz: f58da3b69b9931638a8c53a47ef1c0d331006bb1ccb4296ba22a288a6ea7b724
5
5
  SHA512:
6
- metadata.gz: c27c68fa66faa6a457d8e463c9a6e3da7a4faa37635653136fe60240632333f5915198eb957720033ba1c9b23dd5466d7385d8b0f803505eba8e04fe992ddcf4
7
- data.tar.gz: f2402c1a385d2fa1d9253ad9d6b95508b5e5fcff1abdd1615cdedd0459f772050976f1a8fe654afe22cb3fe11c0b1a94d3696f6f3a88485b8eaa1de853cb2cad
6
+ metadata.gz: 42bb09836176c232ffe649f7474618ea0090ffb62ca4119ea788d4b7f8076706bb0aa8063287ca1c93901c76721ad620329b23da8904dd1cdeebd896876951a8
7
+ data.tar.gz: 3c0c3fb63c48de64a679cea26e6822cc66015489467daddd0811e6b2c8ce70654a3ab231300090425bc3c6507e632ceaab46a829224824767290fe94a57fe696
@@ -58,54 +58,67 @@ class YPPackage
58
58
  end
59
59
 
60
60
  puts yp_infoPlistPath
61
- puts yp_mobileprovisionPath
62
61
 
63
- yp_mobileprovisionPlistPath = yp_resourceFile_app + "/" + "mobileprovision.plist"
64
- # 解析描述文件
65
- yp_mobileprovisionDatum = `security cms -D -i #{yp_mobileprovisionPath}`
66
-
67
- puts yp_mobileprovisionPlistPath
68
-
69
- yp_plistCreateFile = File.new(yp_mobileprovisionPlistPath,"w+")
70
- yp_plistCreateFile.syswrite(yp_mobileprovisionDatum)
71
- yp_plistCreateFile.close
72
-
73
- yp_log_success "============================================================"
74
-
75
- yp_plist = Plist.parse_xml(yp_mobileprovisionPlistPath)
76
-
77
- yp_appIDName = yp_plist["AppIDName"]
78
- yp_applicationIdentifierPrefix = yp_plist["ApplicationIdentifierPrefix"]
79
- yp_creationDate = yp_plist["CreationDate"]
80
- yp_platform = yp_plist["Platform"]
81
- yp_isXcodeManaged = yp_plist["IsXcodeManaged"]
82
- yp_developerCertificates = yp_plist["DeveloperCertificates"]
83
- yp_DER_Encoded_Profile = yp_plist["DER-Encoded-Profile"]
84
- yp_entitlements = yp_plist["Entitlements"]
85
- yp_expirationDate = yp_plist["ExpirationDate"]
86
- yp_name = yp_plist["Name"]
87
- yp_provisionsAllDevices = yp_plist["ProvisionsAllDevices"]
88
- yp_teamIdentifier = yp_plist["TeamIdentifier"]
89
- yp_teamName = yp_plist["TeamName"]
90
- yp_timeToLive = yp_plist["TimeToLive"]
91
- yp_uUID = yp_plist["UUID"]
92
- yp_version = yp_plist["Version"]
93
- yp_provisionedDevices = yp_plist["ProvisionedDevices"]
94
-
95
- yp_log_success " 输出描述文件embedded.mobileprovision"
96
- puts yp_mobileprovisionPlistPath
97
- puts ''
98
- yp_log_doing " 程序名称:\t#{yp_appIDName}"
99
- yp_log_doing " 团队名称:\t#{yp_teamName}"
100
- yp_log_doing " 创建时间:\t#{yp_creationDate}"
101
- yp_log_fail " 过期时间:\t#{yp_expirationDate}"
102
- yp_log_doing " 系统平台:\t#{yp_platform}"
103
-
104
- if yp_provisionedDevices.class == Array
105
- yp_log_doing " \n udids"
106
- for device in yp_provisionedDevices
107
- yp_log_doing " #{device}"
62
+ if yp_mobileprovisionPath.length > 0
63
+ puts yp_mobileprovisionPath
64
+ yp_mobileprovisionPlistPath = yp_resourceFile_app + "/" + "mobileprovision.plist"
65
+ # 解析描述文件
66
+ yp_mobileprovisionDatum = `security cms -D -i #{yp_mobileprovisionPath}`
67
+
68
+ puts yp_mobileprovisionPlistPath
69
+
70
+ yp_plistCreateFile = File.new(yp_mobileprovisionPlistPath,"w+")
71
+ yp_plistCreateFile.syswrite(yp_mobileprovisionDatum)
72
+ yp_plistCreateFile.close
73
+
74
+ yp_log_success "============================================================"
75
+
76
+ yp_plist = Plist.parse_xml(yp_mobileprovisionPlistPath)
77
+
78
+ if !yp_plist
79
+ yp_plist = {}
80
+ end
81
+
82
+ yp_appIDName = yp_plist["AppIDName"]
83
+ yp_applicationIdentifierPrefix = yp_plist["ApplicationIdentifierPrefix"]
84
+ yp_creationDate = yp_plist["CreationDate"]
85
+ yp_platform = yp_plist["Platform"]
86
+ yp_isXcodeManaged = yp_plist["IsXcodeManaged"]
87
+ yp_developerCertificates = yp_plist["DeveloperCertificates"]
88
+ yp_DER_Encoded_Profile = yp_plist["DER-Encoded-Profile"]
89
+ yp_entitlements = yp_plist["Entitlements"]
90
+ yp_expirationDate = yp_plist["ExpirationDate"]
91
+ yp_name = yp_plist["Name"]
92
+ yp_provisionsAllDevices = yp_plist["ProvisionsAllDevices"]
93
+ yp_teamIdentifier = yp_plist["TeamIdentifier"]
94
+ yp_teamName = yp_plist["TeamName"]
95
+ yp_timeToLive = yp_plist["TimeToLive"]
96
+ yp_uUID = yp_plist["UUID"]
97
+ yp_version = yp_plist["Version"]
98
+ yp_provisionedDevices = yp_plist["ProvisionedDevices"]
99
+
100
+ yp_log_success " 输出描述文件embedded.mobileprovision"
101
+ puts yp_mobileprovisionPlistPath
102
+ puts ''
103
+ yp_log_doing " 程序名称:\t#{yp_appIDName}"
104
+ yp_log_doing " 团队名称:\t#{yp_teamName}"
105
+ yp_log_doing " 创建时间:\t#{yp_creationDate}"
106
+ yp_log_fail " 过期时间:\t#{yp_expirationDate}"
107
+ yp_log_doing " 系统平台:\t#{yp_platform}"
108
+
109
+ if yp_provisionedDevices.class == Array
110
+ yp_log_doing " \n udids"
111
+ for device in yp_provisionedDevices
112
+ yp_log_doing " #{device}"
113
+ end
108
114
  end
115
+
116
+ puts ''
117
+
118
+ else
119
+ yp_log_success "============================================================"
120
+ yp_log_success "==================== 来自 AppStore 下载 ===================="
121
+
109
122
  end
110
123
 
111
124
  # yp_log_msg " 标识符🚀:\t#{yp_applicationIdentifierPrefix}"
@@ -118,7 +131,6 @@ class YPPackage
118
131
  # puts " 生存时间:\t#{yp_timeToLive}"
119
132
  # puts " uuid🚀🚀:\t#{yp_uUID}"
120
133
  # puts " 版本号🚀:\t#{yp_version}"
121
- puts ''
122
134
  yp_log_success "============================================================"
123
135
 
124
136
  # puts yp_infoPlistPath
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yptools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - chenghengsheng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-01 00:00:00.000000000 Z
11
+ date: 2022-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler