fir-cli 1.2.7 → 1.2.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: aae37560a32f8148019401781f25a6178eb42928
4
- data.tar.gz: 9d7ea5da155442ecb9dbb3d403d6fd92d8df2dd5
3
+ metadata.gz: 1e71b65b2924de16756c2864e7a094de63c956d8
4
+ data.tar.gz: 7bac50ecf47385a4910edc0a2880e728ff15cd2d
5
5
  SHA512:
6
- metadata.gz: 450db2d41ecb6a4387b98da3ff8cd8d7d940dc7dbddb5c8d83a30a9eaf529fd23b4b3d216b4923a24cd23507357f56bf97c1b019f6bcd42bdc41d3d7ceba7cb4
7
- data.tar.gz: 1f80cf0bf64c316b23a1fbc2b069333caff25b638bd3984e41413e02aa6c605208499914f726533e45c7419c620b1074664391e58c1f18f30136c068495ccf3a
6
+ metadata.gz: 1f0b6fe17268b80f01364036396c1852deaf460d7b10210df7fa78cffb6be1d3532d46aa198924f33426d0ba32aaca7729066954df43d06dbc71511ebbd4102d
7
+ data.tar.gz: cba928b8e03b835180a6a72291766f810aa69df817a737ff0fee2ba4975dffd397ae19d46da31a88cb6bc4da945ec76b119e8c4f2d3140189667a299ac0ca858
data/CHANGELOG CHANGED
@@ -1,5 +1,8 @@
1
1
  ## 更新记录
2
2
 
3
+ ### fir-cli 1.2.8
4
+ - 统一 build 后, ipa 和 dSYM 文件的命名
5
+
3
6
  ### fir-cli 1.2.7
4
7
  - publish 时增加更多信息
5
8
 
data/fir-cli.gemspec CHANGED
@@ -27,11 +27,13 @@ Gem::Specification.new do |spec|
27
27
  /_/ /___/_/ |_| \____/_____/___/
28
28
 
29
29
  ## 更新记录
30
- ### fir-cli 1.2.7
30
+ ### fir-cli 1.2.8
31
+ - 统一 build 后, ipa 和 dSYM 文件的命名
31
32
  - publish 时增加更多信息
32
33
  - 增加导出二维码功能
33
34
  - 使用 `fir p <app file path> -Q`
34
35
  - 或者 `fir bi(ba) <project dir> -p -Q` 即可导出当前 app 的二维码图片
36
+ - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG
35
37
  - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源
36
38
  - 欢迎 fork, issue 和 pull request
37
39
  )
data/lib/fir/cli.rb CHANGED
@@ -28,7 +28,6 @@ module FIR
28
28
  method_option :configuration, type: :string, aliases: '-C', desc: 'Use the build configuration NAME for building each target'
29
29
  method_option :target, type: :string, aliases: '-t', desc: 'Build the target specified by targetname'
30
30
  method_option :output, type: :string, aliases: '-o', desc: 'IPA output path, the default is: BUILD_DIR/fir_build_ipa'
31
- method_option :name, type: :string, aliases: '-n', desc: 'IPA name, the default is: YOUR PROJECT NAME'
32
31
  method_option :publish, type: :boolean, aliases: '-p', desc: 'true/false if publish to fir.im'
33
32
  method_option :short, type: :string, aliases: '-s', desc: 'Set custom short link if publish to fir.im'
34
33
  method_option :changelog, type: :string, aliases: '-c', desc: 'Set changelog if publish to fir.im'
@@ -11,7 +11,7 @@ module FIR
11
11
 
12
12
  logger_info_and_run_build_command
13
13
 
14
- output_ipa
14
+ output_ipa_and_dsym
15
15
  @builded_app_path = Dir["#{@output_path}/*.ipa"].first
16
16
 
17
17
  publish_build_app if options.publish?
@@ -24,10 +24,8 @@ module FIR
24
24
 
25
25
  def initialize_ipa_build_cmd(args, options)
26
26
  @configuration = options[:configuration]
27
- @wrapper_name = File.basename(options[:name].to_s, '.*') + '.app' unless options[:name].blank?
28
27
  @target_name = options[:target]
29
28
  @scheme_name = options[:scheme]
30
- @dsym_name = @wrapper_name + '.dSYM' unless @wrapper_name.blank?
31
29
 
32
30
  build_cmd = 'xcodebuild build -sdk iphoneos'
33
31
  build_cmd += initialize_xcode_build_path(options)
@@ -41,25 +39,27 @@ module FIR
41
39
  custom_settings = split_assignment_array_to_hash(args)
42
40
 
43
41
  setting_str = convert_hash_to_assignment_string(custom_settings)
44
- setting_str += " WRAPPER_NAME='#{@wrapper_name}'" unless @wrapper_name.blank?
45
42
  setting_str += " TARGET_BUILD_DIR='#{@build_tmp_dir}'" unless custom_settings['TARGET_BUILD_DIR']
46
43
  setting_str += " CONFIGURATION_BUILD_DIR='#{@build_tmp_dir}'" unless custom_settings['CONFIGURATION_BUILD_DIR']
47
44
  setting_str += " DWARF_DSYM_FOLDER_PATH='#{@output_path}'" unless custom_settings['DWARF_DSYM_FOLDER_PATH']
48
- setting_str += " DWARF_DSYM_FILE_NAME='#{@dsym_name}'" unless @dsym_name.blank?
49
45
  setting_str
50
46
  end
51
47
 
52
- def output_ipa
48
+ def output_ipa_and_dsym
53
49
  Dir.chdir(@build_tmp_dir) do
54
50
  apps = Dir['*.app']
55
51
  check_no_output_app(apps)
56
52
 
57
53
  apps.each do |app|
58
- temp_ipa = zip_app2ipa(File.join(@build_tmp_dir, app))
59
- ipa_info = FIR.ipa_info(temp_ipa)
60
- ipa_name = "#{ipa_info[:name]}-#{ipa_info[:version]}-Build-#{ipa_info[:build]}"
54
+ temp_ipa = zip_app2ipa(File.join(@build_tmp_dir, app))
55
+ ipa_info = FIR.ipa_info(temp_ipa)
56
+ ipa_name = "#{ipa_info[:name]}-#{ipa_info[:version]}-build-#{ipa_info[:build]}"
57
+ dsym_name = "#{@output_path}/#{ipa_info[:name]}.app.dSYM"
61
58
 
62
59
  FileUtils.cp(temp_ipa, "#{@output_path}/#{ipa_name}.ipa")
60
+ if File.exist?(dsym_name)
61
+ FileUtils.mv(dsym_name, "#{@output_path}/#{ipa_name}.app.dSYM")
62
+ end
63
63
  end
64
64
  end
65
65
 
data/lib/fir/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module FIR
4
- VERSION = '1.2.7'
4
+ VERSION = '1.2.8'
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: 1.2.7
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - NaixSpirit
@@ -196,8 +196,9 @@ metadata: {}
196
196
  post_install_message: "\n ______________ ________ ____\n /
197
197
  ____/ _/ __ \\ / ____/ / / _/\n / /_ / // /_/ /_____/ / / / /
198
198
  /\n / __/ _/ // _, _/_____/ /___/ /____/ /\n /_/ /___/_/ |_| \\____/_____/___/\n\n
199
- \ ## 更新记录\n ### fir-cli 1.2.7\n - publish 时增加更多信息\n - 增加导出二维码功能\n - 使用 `fir
200
- p <app file path> -Q`\n - 或者 `fir bi(ba) <project dir> -p -Q` 即可导出当前 app 的二维码图片\n
199
+ \ ## 更新记录\n ### fir-cli 1.2.8\n - 统一 build 后, ipa 和 dSYM 文件的命名\n - publish 时增加更多信息\n
200
+ \ - 增加导出二维码功能\n - 使用 `fir p <app file path> -Q`\n - 或者 `fir bi(ba) <project dir>
201
+ -p -Q` 即可导出当前 app 的二维码图片\n - 详细更新记录, 请查看: https://github.com/FIRHQ/fir-cli/blob/master/CHANGELOG\n
201
202
  \ - [fir-cli](https://github.com/FIRHQ/fir-cli) 已经开源\n - 欢迎 fork, issue 和 pull
202
203
  request\n "
203
204
  rdoc_options: []