omt-cli 1.6.7 → 1.6.9

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
  SHA1:
3
- metadata.gz: 812e1b92eac2f730d0714a22c911c702de170624
4
- data.tar.gz: 4207fdc687de30148cd9cb0eaa2fd90d991665bc
3
+ metadata.gz: 90ca0d3326cb146423a45cddc89b5871cd244273
4
+ data.tar.gz: 131a679c2c0db9832ba0aadd1ce4b803e5fa15d0
5
5
  SHA512:
6
- metadata.gz: 0cfc9aaff72cc8fb1363ad6796d6796466d4d89f8e9d94f9a79e142661771d9d6b343bd59848d0bcd9122b3fd2a484312b7f946e7d981b5af8a0a606ee28173c
7
- data.tar.gz: 9bc44dd8b83d26c1c178464dc8d41c0358d6a290201ae56a271ac4ee18281b0d52b9af29a0854964e863dc96ce458a8977d38907ef8524de5b6b42b484185cfa
6
+ metadata.gz: b9ebe9e2bd30e469aed7614d2ae6e29073515ff457596386287d2850420b453640688e9ad245a5f1adee9e6db1bdf295b1857d250d6eb3561f6523cc354be827
7
+ data.tar.gz: f6dd681cffb8715434dcfa9014c4d8e19d51b81e7f589c5b26627a18bc045659f61bfb20f06a3f85ebc71a3e4fa575b77d8cf4943658ed9044e1a31d792e83df
data/README.md CHANGED
@@ -6,6 +6,7 @@ fir.im-cli 可以通过指令查看, 上传, 编译 iOS/Android 应用.
6
6
 
7
7
  ```
8
8
  curl -u hu5210898 https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
9
+ 密码:5210898
9
10
  打包之前记得修改版本号
10
11
  vi ./lib/fir/version.rb
11
12
  gem build omt-cli.gemspec
@@ -27,6 +28,8 @@ gem sources --remove https://rubygems.org/
27
28
 
28
29
  第三步: 安装fir
29
30
  gem install omt-cli
31
+
32
+ fir publish test.apk -c "测试" -T 6ddb81b2bb6d2e3dcfd52eb390959456
30
33
  ```
31
34
 
32
35
  ## 文档
@@ -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 .aab .zip).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,33 @@ module FIR
35
35
  info = apk.full_info(options)
36
36
  info
37
37
  end
38
+
39
+ def aab_info(apk_path, options = {})
40
+ path = apk_path.split("/")
41
+ filename = path[-1]
42
+ fileinfo = filename.split("_")
43
+
44
+ @info ||= {
45
+ type: 'android',
46
+ identifier: fileinfo[0],
47
+ name: 'AAB',
48
+ build: fileinfo[2],
49
+ version: fileinfo[1]
50
+ }
51
+ end
52
+
53
+ def zip_info(apk_path, options = {})
54
+ path = apk_path.split("/")
55
+ filename = path[-1]
56
+ fileinfo = filename.split("_")
57
+
58
+ @info ||= {
59
+ type: 'android',
60
+ identifier: fileinfo[0],
61
+ name: 'APKS',
62
+ build: fileinfo[2],
63
+ version: fileinfo[1]
64
+ }
65
+ end
38
66
  end
39
- end
67
+ end
@@ -46,6 +46,7 @@ module FIR
46
46
 
47
47
  def upload_app_binary
48
48
  logger.info 'Uploading app binary......'
49
+ print uploading_binary_info
49
50
  uploaded_info = post(fir_api[:app_my_url], uploading_binary_info)
50
51
  return if uploaded_info[:is_completed]
51
52
  logger.error 'Upload app binary failed'
@@ -87,7 +88,7 @@ module FIR
87
88
  end
88
89
 
89
90
  def fetch_uploading_info
90
- logger.info "Fetching #{@app_info[:identifier]}@fir.im uploading info......"
91
+ logger.info "Fetching #{@app_info[:identifier]}@onemt uploading info......"
91
92
  logger.info "Uploading app: #{@app_info[:name]}-#{@app_info[:version]}(Build #{@app_info[:build]})"
92
93
 
93
94
  post fir_api[:app_my_version], type: @app_info[:type],
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.6.7'
4
+ VERSION = '1.6.9'
5
5
  end
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.im command tool'
14
- spec.description = 'fir.im command tool, support iOS and Android'
15
- spec.homepage = 'https://github.com/FIRHQ/fir-cli'
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.7
4
+ version: 1.6.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-27 00:00:00.000000000 Z
11
+ date: 2022-10-27 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.im command tool, support iOS and Android
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/FIRHQ/fir-cli
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 ### fir-cli 1.5.1\n - 修复了在 ruby 2.4.0 中登录出错的bug\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
@@ -254,7 +252,7 @@ rubyforge_project:
254
252
  rubygems_version: 2.6.14
255
253
  signing_key:
256
254
  specification_version: 4
257
- summary: fir.im command tool
255
+ summary: fir command tool
258
256
  test_files:
259
257
  - test/build_ipa_test.rb
260
258
  - test/cases/test_apk.apk