fir-cli 2.0.20 → 2.0.22

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: 88732a68654b5fddbe1272ee628654a5dddd2b23e4bfe6b45b6cd0f048a1333c
4
- data.tar.gz: 28eae7d2cf17bc2a1bbb6e2414c9d040c785b2912297576f10b81104d38cdf60
3
+ metadata.gz: 77e9cba516478be239dcf9a96ee35f2a70d7da8871344a535d8de295ec32c4da
4
+ data.tar.gz: 19dd18244a059ee6aea0437b0e932d0dc483103fa52b4dfcf6b1f3c554e823bb
5
5
  SHA512:
6
- metadata.gz: f295623c3db9e80a1b6b22a598492c576d814a1edd54812492e930414a2ca56fc32de9057aa2a2fdb3bfcb245fec7065c2e16c24e00b7f8bab58685332a4aad3
7
- data.tar.gz: 2839aca79b277694bfacefc3ac9d19edf5b9c3f370a465bcd1b5b8ad9cfa06e2a97a64e556f40332c1ab66617bfe964b88f15c2efbf68e016d244bd20c31d9bc
6
+ metadata.gz: 8f72df72c72976e596d68a9b6c3b13afca9f5656253d295de2330b46d3fb44a7399894abe34b292ebffbcb408a2da1c6459160de73fd33b20b52af0140a8a1c1
7
+ data.tar.gz: d7bd5babd00854b4bcca761b283b2228fcc8970b47754436e3c9899ea750111309a449a7191d78893ab9a3c4ee16e8fa5012b57da4b2af9ffca8680a120c549d
data/README.md CHANGED
@@ -6,17 +6,21 @@
6
6
 
7
7
  fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
8
8
 
9
+
10
+
9
11
  ![fir-cli](http://7rf35s.com1.z0.glb.clouddn.com/fir-cli-new.gif)
10
12
 
11
13
 
14
+ 如果您在安装 fir-cli 过程中出现了各种问题, 但是着急使用的话, 现也有一个go 版本的 go-fir-cli 供大家使用, 无需安装依赖, 可以直接使用. 具体请访问 [https://github.com/PGYER/go-fir-cli](https://github.com/PGYER/go-fir-cli). 注意! 该版本功能并不与fir-cli 完全重合, 具体使用方式请参考该项目的 readme 文件.
15
+
12
16
  # 请注意
13
17
  - 如果您遇到了任何fir-cli 使用上的问题, 建议您首先使用 `gem install fir-cli ` 升级到最新版本的 fir-cli, 目前最新版本是 [![最新版本的版本号](https://badge.fury.io/rb/fir-cli.svg)](http://badge.fury.io/rb/fir-cli), 您要是不确定的话, 可以使用 `fir version` 查看当前版本号
14
-
15
-
16
- - 如果您在安装 fir-cli 过程中出现了各种问题, 但是着急使用的话, 现也有一个go 版本的 go-fir-cli 供大家使用, 无需安装依赖, 可以直接使用. 具体请访问 [https://github.com/PGYER/go-fir-cli](https://github.com/PGYER/go-fir-cli). 注意! 该版本功能并不与fir-cli 完全重合, 具体使用方式请参考该项目的 readme 文件.
18
+ - 请注意, 请尽快将 fir-cli 的版本升级至 2.0.15 以上, 旧有 api 即将过期
17
19
  - 我们也提供 docker 版本的 fir-cli, 具体使用方式参见 **Docker 运行 fir-cli** 章节
18
20
 
19
21
  # 最近更新
22
+ - (2.0.22) 支持自定义下载文件名称 --user_download_file_name=具体文件名称 注意, 此参数无法与switch_to_qiniu 一起使用
23
+ - (2.0.21) 修正 publish 的结果不返回导致 fastlane-plugin-fir_cli 命令执行结果为nil 的问题
20
24
  - (2.0.20) 新增参数 --save_uploaded_info, 可以将上传的结果存入当前目录下的 fir-cli-upload-info.json 文件中, 方便集成其他功能
21
25
  - (2.0.19) 修正了上传的图标不显示的问题
22
26
  - (2.0.18) 修复域名导致的飞书发送失败的问题
data/lib/fir/cli.rb CHANGED
@@ -144,9 +144,10 @@ module FIR
144
144
  method_option :auto_download_bundletool_jar, type: :boolean, default: false, desc: "upload aab file command: would download bundletool when invoke bundletool failure"
145
145
 
146
146
  method_option :save_uploaded_info, type: :boolean, default: false, desc: 'save uploaded info to local file named fir-cli-answer.json'
147
+
148
+ method_option :user_download_file_name, type: :string, desc: 'set user download file name, (not support with params switch_to_qiniu)'
147
149
  def publish(*args)
148
150
  prepare :publish
149
-
150
151
  FIR.publish(*args, options)
151
152
  end
152
153
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'uri'
3
4
  require_relative './app_uploader'
4
5
 
5
6
 
@@ -39,6 +40,15 @@ module FIR
39
40
  'authorization' => headers[:authorization]
40
41
  }
41
42
 
43
+ if @options[:user_download_file_name] != nil
44
+ # 处理中文问题, 使之支持 CONTENT-DISPOSITION 的要求
45
+
46
+
47
+ headers_copy["CONTENT-DISPOSITION"] = "attachment; filename=#{URI.encode_www_form_component @options[:user_download_file_name]}"
48
+
49
+
50
+ end
51
+
42
52
  logger.debug headers_copy
43
53
  put_file(binary_url, binary_info, headers_copy)
44
54
  callback_to_api(callback_url, callback_binary_information)
@@ -54,6 +54,8 @@ module FIR
54
54
  write_uploaded_info(answer)
55
55
  end
56
56
 
57
+ answer
58
+
57
59
  end
58
60
 
59
61
  def fetch_app_info
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = "2.0.20"
4
+ VERSION = "2.0.22"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fir-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.20
4
+ version: 2.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-24 00:00:00.000000000 Z
12
+ date: 2024-06-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler