fir-cli 1.7.1 → 1.7.2
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/.travis.yml +2 -3
- data/README.md +2 -10
- data/doc/install.md +6 -4
- data/doc/publish.md +0 -2
- data/fir-cli.gemspec +1 -0
- data/lib/fir/util/publish.rb +6 -1
- data/lib/fir/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20bfcb3b79089a7e71d3e11863ffcb2d884ba3f28036bd977a869b50a073b243
|
|
4
|
+
data.tar.gz: c7f95ac0b0da3915c1f402bd51ea14ae845ffdd018612efa984b16cf40853594
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dce50d46d8fffd9221cee1b291c8f9c4ffe96005d8beb7d3e09564d636ecb0b6260b64e27de805c8d57876cf6ef5e4f1984f9e60424c08e60f48c6529e5ea625
|
|
7
|
+
data.tar.gz: 8c1c426413283f1925ef7811793449f2af0b87a661056d6700fc5548dd2d084c6e9bc5282bae4025dee0e580af9aec2d6a75d99ff8a81bc9480d674aabb66aae
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
|
@@ -14,8 +14,8 @@ fir.im-cli 可以通过指令查看, 上传, iOS/Android 应用.
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
# 最近更新
|
|
17
|
-
- 官方支持 钉钉推送, 使用方法为 在publish 中增加 --dingtalk_access_token=xxxxxxxxxxxxxxxxxxx (或者 -D=xxxxxxx)
|
|
18
|
-
- 官方支持 上传完毕后, 返回精确的版本的下载地址, 使用方案为 在 publish 后增加 --need_release_id (特定版本支持近期30个以内的任意版本)
|
|
17
|
+
- 官方支持 钉钉推送, 使用方法为 在publish 中增加 --dingtalk_access_token=xxxxxxxxxxxxxxxxxxx (或者 -D=xxxxxxx) [2019年05月06日]
|
|
18
|
+
- 官方支持 上传完毕后, 返回精确的版本的下载地址, 使用方案为 在 publish 后增加 --need_release_id (特定版本支持近期30个以内的任意版本) [2019年05月06日]
|
|
19
19
|
- 已过期 build_ipa 功能, 推荐用户使用 fastlane (fastlane gym)进行打包,生成好 ipa 文件后,再使用 `fir publish` 上传生成的ipa [2019年03月21日]
|
|
20
20
|
- 由于部分地区上传时遇到的证书问题, 新版本默认忽略证书校验. 如需打开, 请在命令前加入`UPLOAD_VERIFY_SSL=1`
|
|
21
21
|
- 现已添加 docker 版本, 具体请见 `Docker 运行 fir-cli ` 说明
|
|
@@ -55,14 +55,6 @@ fir login token
|
|
|
55
55
|
fir help
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
## 最近更新
|
|
59
|
-
- (1.7.1) 新增发布后可选返回精确到版本的下载地址, 以及支持钉钉推送
|
|
60
|
-
- (1.7.0) 过期了ipa_build 功能, 增加了对 android manifest instant run 的兼容
|
|
61
|
-
- (1.6.13) 上传图标逻辑修改
|
|
62
|
-
- (1.6.12) 修复了部分机器没有默认安装 byebug 的问题
|
|
63
|
-
- (1.6.11) 变化了 ruby gem 仓库地址
|
|
64
|
-
- (1.6.10) 增加显示release_id 以及 app_id
|
|
65
|
-
|
|
66
58
|
## 提交反馈
|
|
67
59
|
|
|
68
60
|
- 联系微信 `atpking`
|
data/doc/install.md
CHANGED
|
@@ -3,12 +3,14 @@
|
|
|
3
3
|
fir-cli 使用 Ruby 构建, 无需编译, 只要安装相应 gem 即可.
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
$ ruby -v # >
|
|
6
|
+
$ ruby -v # > 2.6.1
|
|
7
7
|
$ gem install fir-cli
|
|
8
8
|
```
|
|
9
9
|
|
|
10
10
|
#### 常见的安装问题
|
|
11
11
|
|
|
12
|
+
- ruby 要求最低版本为 2.3
|
|
13
|
+
|
|
12
14
|
- 使用系统自带的 Ruby 安装, 需确保 ruby-dev 已被正确的安装:
|
|
13
15
|
|
|
14
16
|
```sh
|
|
@@ -26,12 +28,12 @@ $ gem install fir-cli
|
|
|
26
28
|
|
|
27
29
|
```sh
|
|
28
30
|
$ gem sources --remove https://rubygems.org/
|
|
29
|
-
$ gem sources -a https://gems.ruby-china.
|
|
31
|
+
$ gem sources -a https://gems.ruby-china.com/
|
|
30
32
|
$ gem sources -l
|
|
31
33
|
*** CURRENT SOURCES ***
|
|
32
34
|
|
|
33
|
-
https://gems.ruby-china.
|
|
34
|
-
# 请确保只有 gems.ruby-china.
|
|
35
|
+
https://gems.ruby-china.com
|
|
36
|
+
# 请确保只有 gems.ruby-china.com, 如果有其他的源, 请 remove 掉
|
|
35
37
|
|
|
36
38
|
gem update --system
|
|
37
39
|
gem install fir-cli
|
data/doc/publish.md
CHANGED
|
@@ -28,8 +28,6 @@ Options:
|
|
|
28
28
|
- `-s` 参数, 自定义发布后的短链接地址.
|
|
29
29
|
- `-c` 参数, 自定义发布时的 changelog, 支持字符串与文件两种方式, 即 `--changelog='this is changelog'` 和 `--changelog='/Users/fir-cli/changelog'`.
|
|
30
30
|
- `-Q` 参数, 是否生成发布后二维码, 默认为不生成, 加上 `-Q` 参数后会在当前目录生成一张二维码图片, 扫描该图片即可下载该应用.
|
|
31
|
-
- `-m` 参数, 上传当前应用的符号表文件, 配合 `-P` 参数使用.
|
|
32
|
-
- `-P` 参数, [BugHD.com](http://bughd.com) 上相对应的 Project id.
|
|
33
31
|
- `-R` 参数, 显示具体版本, 会在发布结束后的下载地址中生成指定的版本
|
|
34
32
|
- `-D` 参数, 钉钉机器人的access_token, 填写后当上传完毕, 会发送至钉钉机器人
|
|
35
33
|
- `--open` 参数, 设置发布后的应用是否开放给所有人下载, 关闭开放使用 `--no-open` 参数.
|
data/fir-cli.gemspec
CHANGED
data/lib/fir/util/publish.rb
CHANGED
|
@@ -20,6 +20,7 @@ module FIR
|
|
|
20
20
|
dingtalk_notifier(options)
|
|
21
21
|
upload_mapping_file_with_publish(options)
|
|
22
22
|
logger_info_blank_line
|
|
23
|
+
clean_files
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
def logger_info_publishing_message
|
|
@@ -182,13 +183,17 @@ module FIR
|
|
|
182
183
|
logger.info "Published succeed: #{@download_url}"
|
|
183
184
|
|
|
184
185
|
@qrcode_path = "#{File.dirname(@file_path)}/fir-#{@app_info[:name]}.png"
|
|
185
|
-
FIR.generate_rqrcode(@
|
|
186
|
+
FIR.generate_rqrcode(@download_url, @qrcode_path)
|
|
186
187
|
|
|
187
188
|
logger.info "Local qrcode file: #{@qrcode_path}" if @export_qrcode
|
|
188
189
|
end
|
|
189
190
|
|
|
190
191
|
private
|
|
191
192
|
|
|
193
|
+
def clean_files
|
|
194
|
+
File.delete(@qrcode_path) unless @export_qrcode
|
|
195
|
+
end
|
|
196
|
+
|
|
192
197
|
def dingtalk_notifier(options)
|
|
193
198
|
if options[:dingtalk_access_token]
|
|
194
199
|
title = "#{@app_info[:name]}-#{@app_info[:version]}(Build #{@app_info[:build]})"
|
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: 1.7.
|
|
4
|
+
version: 1.7.2
|
|
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: 2019-05-
|
|
12
|
+
date: 2019-05-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -234,10 +234,11 @@ metadata: {}
|
|
|
234
234
|
post_install_message: "\n ______________ ________ ____\n /
|
|
235
235
|
____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
|
|
236
236
|
/\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
|
|
237
|
-
\ ## 更新记录\n - (1.7.
|
|
238
|
-
android manifest instant run 的兼容\n - (1.6.13)
|
|
239
|
-
byebug 的问题\n - (1.6.11) 变化了 ruby gem 仓库地址\n
|
|
240
|
-
已经开源\n - 欢迎 fork, issue 和 pull
|
|
237
|
+
\ ## 更新记录\n - (1.7.2) 修正了无论是否加参数都固定出现二维码图片的bug\n - (1.7.1) 增加了 钉钉推送 , 增加了返回指定版本下载地址\n
|
|
238
|
+
\ - (1.7.0) 过期了ipa_build 功能, 增加了对 android manifest instant run 的兼容\n - (1.6.13)
|
|
239
|
+
上传图标逻辑修改\n - (1.6.12) 修复了部分机器没有默认安装 byebug 的问题\n - (1.6.11) 变化了 ruby gem 仓库地址\n
|
|
240
|
+
\ - [fir-cli](https://github.com/firhq/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
|
|
241
|
+
request\n "
|
|
241
242
|
rdoc_options: []
|
|
242
243
|
require_paths:
|
|
243
244
|
- lib
|