fast_pack 0.3.4 → 0.3.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/bin/uki +1 -0
- data/lib/cocoapods-uki-packager/shell.rb +21 -6
- data/lib/cocoapods-uki-packager/uki_config.rb +2 -2
- data/lib/cocoapods-uki-packager/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: 2c40548a79d81f74f5d7565b44acb20069a68f909f3600da0722ea25f61b7f60
|
|
4
|
+
data.tar.gz: c97428e049da4894ee65fb8ed094da1104ed9cd65d1640817edb495e6f623448
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aede1cec3486af7eb533abe8384a989bd352245f7eba7f1dec3b407d38945526e24abbbaeb3c4ddcf22b0bfe694ba76d9a838fe3408bad2ef5795e747faa53eb
|
|
7
|
+
data.tar.gz: fc92772400c0f51f6f56bbdf894249919ec2cfe5e688494b96b98fea9ad4d72e2518ad8f43202c49499f57552653b5afa142dd4c63243e95db6ad311a3948cc0
|
data/bin/uki
CHANGED
|
@@ -62,7 +62,7 @@ class Shell_Command
|
|
|
62
62
|
# 直接开始导出
|
|
63
63
|
self.export
|
|
64
64
|
elsif
|
|
65
|
-
puts("*********************************************************
|
|
65
|
+
puts("********************************************************* 编译失败")
|
|
66
66
|
exit
|
|
67
67
|
end
|
|
68
68
|
end
|
|
@@ -73,7 +73,7 @@ class Shell_Command
|
|
|
73
73
|
def export
|
|
74
74
|
|
|
75
75
|
unless uki_config.build_exe_path
|
|
76
|
-
puts "
|
|
76
|
+
puts "未找到目标文件目录"
|
|
77
77
|
exit
|
|
78
78
|
end
|
|
79
79
|
|
|
@@ -109,8 +109,13 @@ class Shell_Command
|
|
|
109
109
|
#计时
|
|
110
110
|
SECONDS=0
|
|
111
111
|
|
|
112
|
-
fir_token="207c7aad886da8009a73486d5154a7a6"
|
|
113
|
-
fir publish "$APP.ipa" -T $fir_token -c "$fir_log" -R
|
|
112
|
+
# fir_token="207c7aad886da8009a73486d5154a7a6"
|
|
113
|
+
# fir publish "$APP.ipa" -T $fir_token -c "$fir_log" -R
|
|
114
|
+
|
|
115
|
+
apiKey="2b73b132408ae0145c5e7cb871c37036"
|
|
116
|
+
uKey="3bd6eb4f50db762b0d83fabb6692713f"
|
|
117
|
+
|
|
118
|
+
curl -F "file=@$APP.ipa" -F "uKey=$uKey" -F "_api_key=$apiKey" -F "updateDescription=$log" https://www.pgyer.com/apiv1/app/upload
|
|
114
119
|
|
|
115
120
|
size=$(ls -l $APP.ipa | awk '{ print $5 }')
|
|
116
121
|
|
|
@@ -128,8 +133,15 @@ class Shell_Command
|
|
|
128
133
|
}
|
|
129
134
|
|
|
130
135
|
ipa_size = log[/包体积.*$/].split('=').last
|
|
136
|
+
|
|
137
|
+
# url = log[/http:.*$/].to_s
|
|
138
|
+
|
|
139
|
+
url = if uki_config.workspace == "miaohong.xcworkspace"
|
|
140
|
+
"https://www.pgyer.com/K70I"
|
|
141
|
+
else
|
|
142
|
+
"https://www.pgyer.com/uGp4"
|
|
143
|
+
end
|
|
131
144
|
|
|
132
|
-
url = log[/http:.*$/]
|
|
133
145
|
array = log.split('%')
|
|
134
146
|
uki_config.upload_time = array.last.split("=").last.to_i
|
|
135
147
|
uki_config.build_time = Time.now.to_i - uki_config.build_time - uki_config.upload_time
|
|
@@ -259,8 +271,11 @@ class Shell_Command
|
|
|
259
271
|
}
|
|
260
272
|
}
|
|
261
273
|
|
|
274
|
+
# https://open.feishu.cn/open-apis/bot/v2/hook/68c47d38-fc65-4cc5-a386-885a1fbff11b 测试机器人
|
|
275
|
+
# https://open.feishu.cn/open-apis/bot/v2/hook/71ee99db-27fa-45ee-8cba-3004037f34ea 打包群机器人
|
|
276
|
+
|
|
262
277
|
log = %x{
|
|
263
|
-
curl -X POST -H "Content-Type: application/json" -d '#{message.to_json}' "https://open.feishu.cn/open-apis/bot/v2/hook/
|
|
278
|
+
curl -X POST -H "Content-Type: application/json" -d '#{message.to_json}' "https://open.feishu.cn/open-apis/bot/v2/hook/71ee99db-27fa-45ee-8cba-3004037f34ea"
|
|
264
279
|
}
|
|
265
280
|
|
|
266
281
|
if uki_config.verbose?
|
|
@@ -112,10 +112,10 @@ class Uki_config
|
|
|
112
112
|
|
|
113
113
|
def group_name
|
|
114
114
|
unless @workspace_name == "miaohong.xcworkspace"
|
|
115
|
-
return "iOS
|
|
115
|
+
return "iOS海外极速打包已完成"
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
return "iOS
|
|
118
|
+
return "iOS国内极速打包已完成"
|
|
119
119
|
end
|
|
120
120
|
|
|
121
121
|
def xcode_env_path
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fast_pack
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- 耿磊
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cocoapods
|