omt-cli 1.6.7 → 1.6.8

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: bc5c18aba848042d2c7c5f287b27c4547ed340ef
4
+ data.tar.gz: a41646ff1df2d214e97014c6e3a3324b7a4550d0
5
5
  SHA512:
6
- metadata.gz: 0cfc9aaff72cc8fb1363ad6796d6796466d4d89f8e9d94f9a79e142661771d9d6b343bd59848d0bcd9122b3fd2a484312b7f946e7d981b5af8a0a606ee28173c
7
- data.tar.gz: 9bc44dd8b83d26c1c178464dc8d41c0358d6a290201ae56a271ac4ee18281b0d52b9af29a0854964e863dc96ce458a8977d38907ef8524de5b6b42b484185cfa
6
+ metadata.gz: e37e2201bfbcb3446c0d61c7b1be8f7a1d9c694f9e2beafa2cdd1b2f1a3147d1e32a2f7ca82f0c83b69d603002ea98a07b2ddf1ef67caf1d076497f6f20f63dd
7
+ data.tar.gz: 277d220c813c7cd1d3fdcf1ad017df109dfe8dc367c35df8751d995469620588d608f54ac5fe424799528ea38f85bd8ec7f7888d77604583cb1f495e22ddd2da
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 .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
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.8'
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.8
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: 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.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