fir-cli 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fir-cli.gemspec +1 -1
- data/lib/fir-cli-commands/resign.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 396c52a907f43e7660bb4bd1b89c3b7b212b1ff7
|
4
|
+
data.tar.gz: 142be775b960115d50f38c14e0e396fedea9b6ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa2ac76360fcb3f0ded94fc206c9762bf40befa0d374ad72c9e9eb193938345dcdc14b8b80fcb8a22a88332e2fc8fccf79ea91e551de5cd951644d63d2a993d0
|
7
|
+
data.tar.gz: d225bea3e6cbd4afc81325a61478b36a61a1e2c1a65f27604d1c17bcdd90fb478806ba1bbd770cc8db98ceb5824eab3799cf6bae2964ae548ab20f5ac3d1a494
|
data/fir-cli.gemspec
CHANGED
@@ -24,8 +24,8 @@ module Fir
|
|
24
24
|
exit 1
|
25
25
|
end
|
26
26
|
end
|
27
|
-
if
|
28
|
-
_puts Paint['
|
27
|
+
if !_is_ipa ipath
|
28
|
+
_puts "! #{ Paint['只能给以 ipa 为扩展名的文件签名', :red] }"
|
29
29
|
exit 1
|
30
30
|
end
|
31
31
|
_puts '> 正在申请上传令牌...'
|
@@ -55,12 +55,16 @@ module Fir
|
|
55
55
|
info = {}
|
56
56
|
loop do
|
57
57
|
res = RestClient.get "http://api.resign.tapbeta.com/public/#{ tapbeta[:tb_upload_key] }",
|
58
|
-
:params => { :__mr => '
|
58
|
+
:params => { :__mr => 'eyJ1cmwiOiIkKHVybCkiLCAicmVzaWduU3RhdHVzIjogIiQocmVzaWduU3RhdHVzKSIsICJzdGF0dXMiOiAiJChzdGF0dXMpIn0=' }
|
59
59
|
info = JSON.parse res.body, :symbolize_names => true
|
60
60
|
if nped && info[:resignStatus] == 'doing'
|
61
61
|
_puts '> 正在签名...'
|
62
62
|
nped = false
|
63
63
|
end
|
64
|
+
if info[:status] == 'error'
|
65
|
+
_puts "! #{ Paint['签名失败', :red] }"
|
66
|
+
exit 1
|
67
|
+
end
|
64
68
|
break if info[:url] != ''
|
65
69
|
sleep 5
|
66
70
|
end
|