fast_pack 0.3.4 → 0.3.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: 56b76321cbc99b6332e24ff16d35aa00200a23bccea0288640e97929c9bc4733
4
- data.tar.gz: 990894a1d13a216970560cef95f4c240552d25b7ed3bf270f3b252862512f915
3
+ metadata.gz: 2c40548a79d81f74f5d7565b44acb20069a68f909f3600da0722ea25f61b7f60
4
+ data.tar.gz: c97428e049da4894ee65fb8ed094da1104ed9cd65d1640817edb495e6f623448
5
5
  SHA512:
6
- metadata.gz: f6c15ba3e8418a94201d88bd419e406531e1ff5d8c9df4c7baf7f8472ff6f486df13ecfdf8145ebbb0f86f82a70711cec11c743ef5fa92088ca92cad037b59d9
7
- data.tar.gz: b068e5065c2122006903ebbd0f427e020f30fa6552bf4a30b7398bba5f222450194edf1145b16654ac694164c7570d19888bc2115d5b81ea031b678814f5eaea
6
+ metadata.gz: aede1cec3486af7eb533abe8384a989bd352245f7eba7f1dec3b407d38945526e24abbbaeb3c4ddcf22b0bfe694ba76d9a838fe3408bad2ef5795e747faa53eb
7
+ data.tar.gz: fc92772400c0f51f6f56bbdf894249919ec2cfe5e688494b96b98fea9ad4d72e2518ad8f43202c49499f57552653b5afa142dd4c63243e95db6ad311a3948cc0
data/bin/uki CHANGED
@@ -8,5 +8,6 @@ if $PROGRAM_NAME == __FILE__
8
8
 
9
9
 
10
10
  require "cocoapods-uki-packager/command/pack"
11
+ # require 'cocoapods'
11
12
 
12
13
  Pod::Command.run(ARGV)
@@ -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/68c47d38-fc65-4cc5-a386-885a1fbff11b"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Packager
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.7"
5
5
  end
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
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-03 00:00:00.000000000 Z
11
+ date: 2022-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods