fir-cli 2.0.19 → 2.0.20

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: 5d8208a258359b52c7c566be4abdd1e3eb5bb54dbb7d178c649748283e0bcdfc
4
- data.tar.gz: fdfaa417cfd1f8b9b6623fc210638c903a26212a8f0c1f89c9c470c4410c04d1
3
+ metadata.gz: 88732a68654b5fddbe1272ee628654a5dddd2b23e4bfe6b45b6cd0f048a1333c
4
+ data.tar.gz: 28eae7d2cf17bc2a1bbb6e2414c9d040c785b2912297576f10b81104d38cdf60
5
5
  SHA512:
6
- metadata.gz: af677647d83e70ea9bf29082fa8a730f4f2b452bde0958e79d71f35d9425101ab1c2a39c421fd368bd37b763c7f0d040e4468b618d76ad6b5233aa909979c1f9
7
- data.tar.gz: 28cc90042d5e46dcba95db047ca7c11258dbf2126cadcf44434bc833c13cfcdef07c91d912dce1d816d7d50bbf443d10883b7437252dadf0702a66105b6ac80f
6
+ metadata.gz: f295623c3db9e80a1b6b22a598492c576d814a1edd54812492e930414a2ca56fc32de9057aa2a2fdb3bfcb245fec7065c2e16c24e00b7f8bab58685332a4aad3
7
+ data.tar.gz: 2839aca79b277694bfacefc3ac9d19edf5b9c3f370a465bcd1b5b8ad9cfa06e2a97a64e556f40332c1ab66617bfe964b88f15c2efbf68e016d244bd20c31d9bc
@@ -15,4 +15,21 @@ jobs:
15
15
  steps:
16
16
  - uses: actions/checkout@v3
17
17
  - name: Build the Docker image
18
- run: docker build . --file Dockerfile --tag firhq/fir-cli:latest
18
+ run: docker buildx create --use && docker buildx build --platform=linux/arm64,linux/amd64 . --file Dockerfile --tag firhq/fir-cli:latest
19
+
20
+ - name: get version Number
21
+ id: show-version
22
+ run: echo "::set-output name=result::$(docker run firhq/fir-cli:latest version | awk '{print $3}')"
23
+
24
+ - name: check version number
25
+ run: echo "the version is ${{ steps.show-version.outputs.result }}"
26
+
27
+ - name: Tag image
28
+ run: docker tag firhq/fir-cli:latest firhq/fir-cli:${{ steps.show-version.outputs.result }}
29
+
30
+ - name: Login Docker
31
+ run: docker login -u atpking -p ${{ secrets.DOCKER_ACCESS_TOKEN }}
32
+
33
+ - name: Publish docker
34
+ run: docker push firhq/fir-cli:latest && docker push firhq/fir-cli:${{ steps.show-version.outputs.result }}
35
+
data/.gitignore CHANGED
@@ -26,3 +26,4 @@ Gemfile.lock
26
26
  lib/.byebug_history
27
27
  TAGS
28
28
  .vscode
29
+ fir-cli-answer.json
data/README.md CHANGED
@@ -8,13 +8,16 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
8
8
 
9
9
  ![fir-cli](http://7rf35s.com1.z0.glb.clouddn.com/fir-cli-new.gif)
10
10
 
11
+
11
12
  # 请注意
12
13
  - 如果您遇到了任何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` 查看当前版本号
13
14
 
15
+
14
16
  - 如果您在安装 fir-cli 过程中出现了各种问题, 但是着急使用的话, 现也有一个go 版本的 go-fir-cli 供大家使用, 无需安装依赖, 可以直接使用. 具体请访问 [https://github.com/PGYER/go-fir-cli](https://github.com/PGYER/go-fir-cli). 注意! 该版本功能并不与fir-cli 完全重合, 具体使用方式请参考该项目的 readme 文件.
15
17
  - 我们也提供 docker 版本的 fir-cli, 具体使用方式参见 **Docker 运行 fir-cli** 章节
16
18
 
17
19
  # 最近更新
20
+ - (2.0.20) 新增参数 --save_uploaded_info, 可以将上传的结果存入当前目录下的 fir-cli-upload-info.json 文件中, 方便集成其他功能
18
21
  - (2.0.19) 修正了上传的图标不显示的问题
19
22
  - (2.0.18) 修复域名导致的飞书发送失败的问题
20
23
  - (2.0.17) 增加了上传百分比显示
data/fir-cli.gemspec CHANGED
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'minitest', '~> 5.7'
39
39
  spec.add_development_dependency 'pry', '~> 0.10'
40
40
 
41
- spec.add_dependency 'admqr_knife', '~> 0.1.5'
41
+ spec.add_dependency 'admqr_knife', '~> 0.2.0'
42
42
  spec.add_dependency 'thor', '~> 1.2.1'
43
43
  spec.add_dependency 'rest-client', '~> 2.0'
44
44
  spec.add_dependency 'ruby_android_apk', '~> 0.7.7.1'
data/lib/fir/cli.rb CHANGED
@@ -142,6 +142,8 @@ module FIR
142
142
 
143
143
  method_option :bundletool_jar_path, type: :string, desc: "upload aab file command: to specify bundletool.jar if command bundletool can not run directly"
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
+
146
+ method_option :save_uploaded_info, type: :boolean, default: false, desc: 'save uploaded info to local file named fir-cli-answer.json'
145
147
  def publish(*args)
146
148
  prepare :publish
147
149
 
@@ -42,11 +42,18 @@ module FIR
42
42
 
43
43
  logger_info_blank_line
44
44
 
45
- {
45
+ answer = {
46
46
  app_id: @app_id,
47
+ short: short,
47
48
  release_id: release_id,
48
- short: short
49
+ download_url: download_url,
50
+ time: Time.now.strftime("%F %T%:z")
49
51
  }
52
+
53
+ if options[:save_uploaded_info]
54
+ write_uploaded_info(answer)
55
+ end
56
+
50
57
  end
51
58
 
52
59
  def fetch_app_info
@@ -113,6 +120,12 @@ module FIR
113
120
  )
114
121
  end
115
122
 
123
+ def write_uploaded_info(answer)
124
+ File.open('fir-cli-answer.json', 'w') do |f|
125
+ f.write(answer.to_json)
126
+ end
127
+ end
128
+
116
129
  def upload_device_info
117
130
  return if @app_info[:devices].blank?
118
131
 
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.19"
4
+ VERSION = "2.0.20"
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.19
4
+ version: 2.0.20
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-16 00:00:00.000000000 Z
12
+ date: 2023-03-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -73,14 +73,14 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: 0.1.5
76
+ version: 0.2.0
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: 0.1.5
83
+ version: 0.2.0
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: thor
86
86
  requirement: !ruby/object:Gem::Requirement