fir-cli 2.0.21 → 2.0.22
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 +4 -4
- data/README.md +2 -1
- data/lib/fir/cli.rb +2 -1
- data/lib/fir/util/ali_uploader.rb +10 -0
- data/lib/fir/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77e9cba516478be239dcf9a96ee35f2a70d7da8871344a535d8de295ec32c4da
|
|
4
|
+
data.tar.gz: 19dd18244a059ee6aea0437b0e932d0dc483103fa52b4dfcf6b1f3c554e823bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8f72df72c72976e596d68a9b6c3b13afca9f5656253d295de2330b46d3fb44a7399894abe34b292ebffbcb408a2da1c6459160de73fd33b20b52af0140a8a1c1
|
|
7
|
+
data.tar.gz: d7bd5babd00854b4bcca761b283b2228fcc8970b47754436e3c9899ea750111309a449a7191d78893ab9a3c4ee16e8fa5012b57da4b2af9ffca8680a120c549d
|
data/README.md
CHANGED
|
@@ -15,10 +15,11 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
|
|
|
15
15
|
|
|
16
16
|
# 请注意
|
|
17
17
|
- 如果您遇到了任何fir-cli 使用上的问题, 建议您首先使用 `gem install fir-cli ` 升级到最新版本的 fir-cli, 目前最新版本是 [](http://badge.fury.io/rb/fir-cli), 您要是不确定的话, 可以使用 `fir version` 查看当前版本号
|
|
18
|
-
|
|
18
|
+
- 请注意, 请尽快将 fir-cli 的版本升级至 2.0.15 以上, 旧有 api 即将过期
|
|
19
19
|
- 我们也提供 docker 版本的 fir-cli, 具体使用方式参见 **Docker 运行 fir-cli** 章节
|
|
20
20
|
|
|
21
21
|
# 最近更新
|
|
22
|
+
- (2.0.22) 支持自定义下载文件名称 --user_download_file_name=具体文件名称 注意, 此参数无法与switch_to_qiniu 一起使用
|
|
22
23
|
- (2.0.21) 修正 publish 的结果不返回导致 fastlane-plugin-fir_cli 命令执行结果为nil 的问题
|
|
23
24
|
- (2.0.20) 新增参数 --save_uploaded_info, 可以将上传的结果存入当前目录下的 fir-cli-upload-info.json 文件中, 方便集成其他功能
|
|
24
25
|
- (2.0.19) 修正了上传的图标不显示的问题
|
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)
|
data/lib/fir/version.rb
CHANGED
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.
|
|
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:
|
|
12
|
+
date: 2024-06-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|