fast_pack 0.3.5 → 0.3.6

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: 57564d0d088604fcf177eef93edf7e18fd9c1dfa0eb51fe78c19df72acbc35b7
4
+ data.tar.gz: f3d989bc8a641e116aef07b1fde859c30622a0f809223b8e3254482a1ba31f4d
5
5
  SHA512:
6
- metadata.gz: c651e6cf66be5bd555c76d286605daa40a36bbf5c56997cbf130e4c8d412c4250d46e421218c1b2ac8bb6f1c502aa6b859838595aa2087670b570c646e0e338e
7
- data.tar.gz: fe7bf395dfa1bca11e4174d194f7d15db23085606a790230f34fcc309f09bb6d844f706628a0e27d34fb1192aa6dca909117ff6a46c0dc119f077af871ebc8e6
6
+ metadata.gz: cba94d9e36d8af526f5a81b7aef2763b5ac0c5f89e0884261e675cc8c8bc0836a16fdf5af6edb9c8a0605c14fd59344fdf5dbc5146371192b206780d8eeb3396
7
+ data.tar.gz: 36013c8607defce3bb39e9c899eee82e685867f30b6984afb23009a646acb07e78bfc7e8ab7412fe08f48f46f64596351855c32b28fe12d0da3f1bc0b128dcae
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)
@@ -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
@@ -258,8 +271,11 @@ 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/68c47d38-fc65-4cc5-a386-885a1fbff11b 打包群机器人
276
+
261
277
  log = %x{
262
- 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"
278
+ 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"
263
279
  }
264
280
 
265
281
  if uki_config.verbose?
@@ -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.6"
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.6
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