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 +4 -4
- data/lib/yptools/package/yp_package.rb +59 -47
- 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: 276c61f364337b2cc8b8722c6060df1a87d5643634d15cf5c84e6e1850492a4d
|
4
|
+
data.tar.gz: f58da3b69b9931638a8c53a47ef1c0d331006bb1ccb4296ba22a288a6ea7b724
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
yp_log_doing "
|
106
|
-
|
107
|
-
|
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.
|
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-
|
11
|
+
date: 2022-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|