omt-cli 1.6.4 → 1.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +35 -25
- data/lib/fir/util/config.rb +1 -1
- data/lib/fir/util/info.rb +17 -0
- data/lib/fir/util/parser/bin/pngcrush +0 -0
- data/lib/fir/util/parser/ipa.rb +3 -2
- data/lib/fir/util/publish.rb +3 -1
- data/lib/fir/version.rb +1 -1
- data/omt-cli.gemspec +3 -8
- metadata +7 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc5c18aba848042d2c7c5f287b27c4547ed340ef
|
4
|
+
data.tar.gz: a41646ff1df2d214e97014c6e3a3324b7a4550d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e37e2201bfbcb3446c0d61c7b1be8f7a1d9c694f9e2beafa2cdd1b2f1a3147d1e32a2f7ca82f0c83b69d603002ea98a07b2ddf1ef67caf1d076497f6f20f63dd
|
7
|
+
data.tar.gz: 277d220c813c7cd1d3fdcf1ad017df109dfe8dc367c35df8751d995469620588d608f54ac5fe424799528ea38f85bd8ec7f7888d77604583cb1f495e22ddd2da
|
data/README.md
CHANGED
@@ -1,35 +1,45 @@
|
|
1
|
-
✈ fir.im-cli
|
2
|
-
----
|
3
|
-
|
4
|
-
![Build Status Images](https://travis-ci.org/FIRHQ/fir-cli.svg)
|
5
|
-
[![Code Climate](https://codeclimate.com/github/FIRHQ/fir-cli/badges/gpa.svg)](https://codeclimate.com/github/FIRHQ/fir-cli)
|
6
|
-
[![Test Coverage](https://codeclimate.com/github/FIRHQ/fir-cli/badges/coverage.svg)](https://codeclimate.com/github/FIRHQ/fir-cli/coverage)
|
7
|
-
[![Gem Version](https://badge.fury.io/rb/fir-cli.svg)](http://badge.fury.io/rb/fir-cli)
|
8
|
-
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/FIRHQ/fir-cli?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
9
|
-
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/FIRHQ/fir-cli/master/LICENSE.txt)
|
10
|
-
|
11
1
|
fir.im-cli 可以通过指令查看, 上传, 编译 iOS/Android 应用.
|
12
2
|
|
13
3
|
![fir-cli](http://7rf35s.com1.z0.glb.clouddn.com/fir-cli-new.gif)
|
14
4
|
|
15
|
-
##
|
5
|
+
## 发布
|
16
6
|
|
17
|
-
|
18
|
-
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
- [fir mapping 上传符号表至 BugHD.com](https://github.com/FIRHQ/fir-cli/blob/master/doc/mapping.md)
|
25
|
-
- [fir upgrade 升级相关](https://github.com/FIRHQ/fir-cli/blob/master/doc/upgrade.md)
|
7
|
+
```
|
8
|
+
curl -u hu5210898 https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
|
9
|
+
密码:5210898
|
10
|
+
打包之前记得修改版本号
|
11
|
+
vi ./lib/fir/version.rb
|
12
|
+
gem build omt-cli.gemspec
|
13
|
+
gem push omt-cli-1.6.4.gem
|
26
14
|
|
27
|
-
|
15
|
+
```
|
28
16
|
|
29
|
-
|
17
|
+
## 安装
|
18
|
+
```
|
19
|
+
第一步:安装ruby
|
20
|
+
curl -sSL get.rvm.io | bash -s stable
|
21
|
+
source /etc/profile.d/rvm.sh
|
22
|
+
rvm install 2.2.6
|
30
23
|
|
31
|
-
|
24
|
+
第二步: 更新源
|
25
|
+
gem update --system
|
26
|
+
gem sources -a https://gems.ruby-china.org
|
27
|
+
gem sources --remove https://rubygems.org/
|
32
28
|
|
33
|
-
|
29
|
+
第三步: 安装fir
|
30
|
+
gem install omt-cli
|
31
|
+
|
32
|
+
fir publish test.apk -c "测试" -T 6ddb81b2bb6d2e3dcfd52eb390959456
|
33
|
+
```
|
34
|
+
|
35
|
+
## 文档
|
34
36
|
|
35
|
-
|
37
|
+
- [安装及常见安装问题](doc/install.md)
|
38
|
+
- [fir help 相关指令帮助](doc/help.md)
|
39
|
+
- [fir info 查看 ipa/apk 信息](doc/info.md)
|
40
|
+
- [fir login & fir me 登录相关](doc/login.md)
|
41
|
+
- [fir publish 发布应用到 fir.im](doc/publish.md)
|
42
|
+
- [fir build_ipa 编译打包 ipa 文件](doc/build_ipa.md)
|
43
|
+
- [fir build_apk 编译打包 apk 文件](doc/build_apk.md)
|
44
|
+
- [fir mapping 上传符号表至 BugHD.com](doc/mapping.md)
|
45
|
+
- [fir upgrade 升级相关](doc/upgrade.md)
|
data/lib/fir/util/config.rb
CHANGED
@@ -6,7 +6,7 @@ module FIR
|
|
6
6
|
APP_INFO_PATH = "#{ENV['HOME']}/.omt-cli-app"
|
7
7
|
API_YML_PATH = File.expand_path('../../', __FILE__) + '/api.yml'
|
8
8
|
XCODE_WRAPPER_PATH = File.expand_path('../../', __FILE__) + '/xcode_wrapper.sh'
|
9
|
-
APP_FILE_TYPE = %w(.ipa .apk).freeze
|
9
|
+
APP_FILE_TYPE = %w(.ipa .apk .obb).freeze
|
10
10
|
|
11
11
|
def fir_api
|
12
12
|
@fir_api ||= YAML.load_file(API_YML_PATH).deep_symbolize_keys[:fir]
|
data/lib/fir/util/info.rb
CHANGED
@@ -35,5 +35,22 @@ module FIR
|
|
35
35
|
info = apk.full_info(options)
|
36
36
|
info
|
37
37
|
end
|
38
|
+
|
39
|
+
def obb_info(apk_path, options = {})
|
40
|
+
path = apk_path.split("/")
|
41
|
+
filename = path[-1]
|
42
|
+
version = filename.gsub(/\D/, "")
|
43
|
+
|
44
|
+
identifier = filename.sub!(/main./, "")
|
45
|
+
identifier = filename.sub!(/#{version}./, "")
|
46
|
+
identifier = filename.sub!(/.obb/, "")
|
47
|
+
@info ||= {
|
48
|
+
type: 'android',
|
49
|
+
identifier: identifier,
|
50
|
+
name: 'OBB',
|
51
|
+
build: version,
|
52
|
+
version: version
|
53
|
+
}
|
54
|
+
end
|
38
55
|
end
|
39
56
|
end
|
File without changes
|
data/lib/fir/util/parser/ipa.rb
CHANGED
@@ -119,7 +119,8 @@ module FIR
|
|
119
119
|
def icons
|
120
120
|
@icons ||= begin
|
121
121
|
icons = []
|
122
|
-
info['CFBundleIcons']['CFBundlePrimaryIcon']['CFBundleIconFiles']
|
122
|
+
iconarray = (info['CFBundleIcons'].blank?)?info['CFBundleIconFiles']:info['CFBundleIcons']['CFBundlePrimaryIcon']['CFBundleIconFiles']
|
123
|
+
iconarray.each do |name|
|
123
124
|
icons << get_image(name)
|
124
125
|
icons << get_image("#{name}@2x")
|
125
126
|
end
|
@@ -185,4 +186,4 @@ module FIR
|
|
185
186
|
end
|
186
187
|
end
|
187
188
|
end
|
188
|
-
end
|
189
|
+
end
|
data/lib/fir/util/publish.rb
CHANGED
@@ -5,6 +5,7 @@ module FIR
|
|
5
5
|
def publish(*args, options)
|
6
6
|
initialize_publish_options(args, options)
|
7
7
|
@app_info = send("#{@file_type}_info", @file_path, full_info: true)
|
8
|
+
@change_log = options[:changelog]
|
8
9
|
@uploading_info = fetch_uploading_info
|
9
10
|
upload_app
|
10
11
|
end
|
@@ -56,6 +57,7 @@ module FIR
|
|
56
57
|
{
|
57
58
|
id:@uploading_info[:id],
|
58
59
|
token: @token,
|
60
|
+
info: @change_log,
|
59
61
|
file: File.new(@file_path, 'rb'),
|
60
62
|
# Custom variables
|
61
63
|
'type' => @app_info[:type],
|
@@ -103,4 +105,4 @@ module FIR
|
|
103
105
|
origin_path
|
104
106
|
end
|
105
107
|
end
|
106
|
-
end
|
108
|
+
end
|
data/lib/fir/version.rb
CHANGED
data/omt-cli.gemspec
CHANGED
@@ -10,9 +10,9 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.authors = ['NaixSpirit']
|
11
11
|
spec.email = ['neverlandxy.naix@gmail.com']
|
12
12
|
spec.date = Time.now.strftime('%Y-%m-%d')
|
13
|
-
spec.summary = 'fir
|
14
|
-
spec.description = 'fir
|
15
|
-
spec.homepage = 'https://github.com/
|
13
|
+
spec.summary = 'fir command tool'
|
14
|
+
spec.description = 'fir command tool, support iOS and Android'
|
15
|
+
spec.homepage = 'https://github.com/'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
spec.files = `git ls-files -z`.split("\x0")
|
18
18
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -27,11 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
/_/ /___/_/ |_| \____/_____/___/
|
28
28
|
|
29
29
|
## 更新记录
|
30
|
-
### fir-cli 1.5.1
|
31
|
-
- 修复了在 ruby 2.4.0 中登录出错的bug
|
32
|
-
- 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG
|
33
|
-
- [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源
|
34
|
-
- 欢迎 fork, issue 和 pull request
|
35
30
|
)
|
36
31
|
|
37
32
|
spec.add_development_dependency 'bundler', '~> 1.7'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omt-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- NaixSpirit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -150,7 +150,7 @@ dependencies:
|
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '1.4'
|
153
|
-
description: fir
|
153
|
+
description: fir command tool, support iOS and Android
|
154
154
|
email:
|
155
155
|
- neverlandxy.naix@gmail.com
|
156
156
|
executables:
|
@@ -226,16 +226,14 @@ files:
|
|
226
226
|
- test/me_test.rb
|
227
227
|
- test/publish_test.rb
|
228
228
|
- test/test_helper.rb
|
229
|
-
homepage: https://github.com/
|
229
|
+
homepage: https://github.com/
|
230
230
|
licenses:
|
231
231
|
- MIT
|
232
232
|
metadata: {}
|
233
233
|
post_install_message: "\n ______________ ________ ____\n /
|
234
234
|
____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
|
235
235
|
/\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
|
236
|
-
\ ## 更新记录\n
|
237
|
-
https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG\n - [fir-cli](https://github.com/FIRHQ/fir-cli)
|
238
|
-
已经开源\n - 欢迎 fork, issue 和 pull request\n "
|
236
|
+
\ ## 更新记录\n "
|
239
237
|
rdoc_options: []
|
240
238
|
require_paths:
|
241
239
|
- lib
|
@@ -251,10 +249,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
249
|
version: '0'
|
252
250
|
requirements: []
|
253
251
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.6.
|
252
|
+
rubygems_version: 2.6.14
|
255
253
|
signing_key:
|
256
254
|
specification_version: 4
|
257
|
-
summary: fir
|
255
|
+
summary: fir command tool
|
258
256
|
test_files:
|
259
257
|
- test/build_ipa_test.rb
|
260
258
|
- test/cases/test_apk.apk
|