fast_pack 0.3.5 → 0.3.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67dc8ee35cc30708896e0e1281bed29496fe587043dcd74fab145d13e75cc381
4
- data.tar.gz: 842747c3508824971d1fdd512c07f627c2a0e69c9f90d950d03682342af9dff3
3
+ metadata.gz: e5a7b17734ab4cd9252fb7e2b407ff24c0039b5c91235db96f511e581d25ce96
4
+ data.tar.gz: 4a5800e6ae41b12cfd92b3c20b0a21039a82dbfa34c9c8760459327caae98072
5
5
  SHA512:
6
- metadata.gz: c651e6cf66be5bd555c76d286605daa40a36bbf5c56997cbf130e4c8d412c4250d46e421218c1b2ac8bb6f1c502aa6b859838595aa2087670b570c646e0e338e
7
- data.tar.gz: fe7bf395dfa1bca11e4174d194f7d15db23085606a790230f34fcc309f09bb6d844f706628a0e27d34fb1192aa6dca909117ff6a46c0dc119f077af871ebc8e6
6
+ metadata.gz: 473e6dcef126f0a452c9cfec43c2a7cba7b4aaa3f0d7cf986ee67d0cf5dac67c8bd1953914ee4e526d4a195002bbfbbe772dd10e349a383f5c9136ac62db023e
7
+ data.tar.gz: 2c11fea41576a43e5048c063e19407d8855eac92d6b826f7b47c5540148425df6b43ac0f7db65d4f308256aed0605b9800e2a62fe804731b6acb9a9716cb5d2f
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)
@@ -23,6 +23,8 @@ module Pod
23
23
  ['--dsym', '是否生成dsym, 默认不生成'],
24
24
  ['--verbose', '详细流程'],
25
25
  ['--release', '是否是正式环境'],
26
+ ['--test', "是否是Test环境"],
27
+
26
28
 
27
29
  ].concat(super).uniq
28
30
  end
@@ -34,12 +36,21 @@ module Pod
34
36
  @project_sea = true
35
37
  @project_sea = false if argv.flag?('internal', false)
36
38
  @dsym = argv.flag?('dsym', false)
37
- @release = argv.flag?('release', false)
39
+
40
+ uki_config.release = 0
41
+
42
+ if argv.flag?('test', false)
43
+ uki_config.release = 1
44
+ end
45
+
46
+ if argv.flag?('release', false)
47
+ uki_config.release = 2
48
+ end
38
49
 
39
50
  uki_config.verbose = @verbose
40
51
  uki_config.project_sea = @project_sea
41
52
  uki_config.dsym = @dsym
42
- uki_config.release = @release
53
+
43
54
  uki_config.no_build = @no_build
44
55
  uki_config.build_time = Time.now.to_i
45
56
  uki_config.upload_time = 0
@@ -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,7 +133,15 @@ class Shell_Command
128
133
  }
129
134
 
130
135
  ipa_size = log[/包体积.*$/].split('=').last
131
- url = log[/http:.*$/].to_s
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
144
+
132
145
  array = log.split('%')
133
146
  uki_config.upload_time = array.last.split("=").last.to_i
134
147
  uki_config.build_time = Time.now.to_i - uki_config.build_time - uki_config.upload_time
@@ -162,7 +175,7 @@ class Shell_Command
162
175
 
163
176
  hostname = Socket.gethostname
164
177
  project_name = uki_config.group_name
165
- project_env = uki_config.release ? "Release": "Debug"
178
+ project_env = uki_config.configuration
166
179
  project_dsym = uki_config.dsym ? "已上传": "无符号表"
167
180
 
168
181
  message = {
@@ -258,6 +271,9 @@ class Shell_Command
258
271
  }
259
272
  }
260
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
+
261
277
  log = %x{
262
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"
263
279
  }
@@ -39,10 +39,14 @@ class Uki_config
39
39
  end
40
40
 
41
41
  def configuration
42
- unless release
43
- return "Debug"
44
- end
45
- return "Release"
42
+ c = if release == 1
43
+ "Test"
44
+ elsif release == 2
45
+ "Release"
46
+ else
47
+ "Debug"
48
+ end
49
+ return c
46
50
  end
47
51
 
48
52
  def archive_path
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Packager
4
- VERSION = "0.3.5"
4
+ VERSION = "0.3.8"
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.5
4
+ version: 0.3.8
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