luna-binary-uploader 0.1.26 → 0.1.29

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34ab8b047090d75fa5271d54235b4d41606bb096480e096a9f15107b4f736e1f
4
- data.tar.gz: f41390fd6a5b7aa8015d192baf5c116a3de0e2963cce0eda7c469f6ca1d2c403
3
+ metadata.gz: a64ef0ed106b66d7fa7f926afc2d41019ab289aa2a87b32f11d2cb256d85026d
4
+ data.tar.gz: be92b70bc9b1376efb6d24d9ce79c97a3d11f3417cab09877449e1e5fc579a07
5
5
  SHA512:
6
- metadata.gz: 61a5cf56fb25d762b0ebcbc959e1cae3647702af35be552b3a3ece517c6aa5d3a85b20843cfde44d208bf50076c4901132da2a1582d9e492edbfa127c861a171
7
- data.tar.gz: bf0bea03b4437d83c7b5431e574c1e8bf694837c9d4220a714dd02a099983c3907c14f355f9475a61314eaef57718429793764ce15b2b6df8c81e3af0578d49e
6
+ metadata.gz: 500ae49323f2dee4df985e9ef024948f5e4836ed5d7e0c443b8422997531db9306d964d8981c1a2248b7de1127c38dc4b677e68922231f3be7c99ba01c1044e2
7
+ data.tar.gz: 8df86a63ee0dbe5edaf0138c31037b91036d821a9aa17da5868e4415a9be6f5190c9427f6be2c6f960937e6306ba16855770d22046bce11f07a123be82370398
data/bin/lbu CHANGED
@@ -116,6 +116,7 @@ class App
116
116
  command :refresh do |c|
117
117
  c.desc '是否需要build, 不需要的话 -n or --no'
118
118
  c.switch [:n,:no]
119
+ c.switch [:q,:quick]
119
120
  c.action do |global_options,options,args|
120
121
  if options[:no]
121
122
  obj = Luna::Binary::Refresh.new()
@@ -132,6 +133,9 @@ class App
132
133
  build = Luna::Binary::Build.new()
133
134
  build.workspace=args[0]
134
135
  build.scheme=args[1]
136
+ if options[:quick]
137
+ build.needPodInstall = false
138
+ end
135
139
  if build.run
136
140
  obj = Luna::Binary::Refresh.new()
137
141
  obj.binary_path = Luna::Binary::Common.instance.binary_path_merged
@@ -145,6 +149,7 @@ class App
145
149
  desc 'build项目并合成带有arm64&x86的framework'
146
150
  arg_name '1.xcworkspace 名称 eg:MyWorkSpace.xcworkspace 2.scheme eg: MyProject'
147
151
  command :build do |c|
152
+ c.switch [:q,:quick]
148
153
  c.action do |global_options,options,args|
149
154
  help_now!('args is required') if args.empty?
150
155
  help_now!('workspace is required') if args[0] == nil
@@ -152,6 +157,9 @@ class App
152
157
  obj = Luna::Binary::Build.new()
153
158
  obj.workspace=args[0]
154
159
  obj.scheme=args[1]
160
+ if options[:quick]
161
+ build.needPodInstall = false
162
+ end
155
163
  obj.run
156
164
  end
157
165
  end
@@ -192,6 +200,7 @@ class App
192
200
  command :publish do |c|
193
201
  c.desc '是否需要build, 不需要的话 -n or --no'
194
202
  c.switch [:n,:no]
203
+ c.switch [:q,:quick]
195
204
  c.action do |global_options,options,args|
196
205
  if options[:no]
197
206
  update = Luna::Binary::Update.new()
@@ -207,6 +216,9 @@ class App
207
216
  build = Luna::Binary::Build.new()
208
217
  build.workspace=args[0]
209
218
  build.scheme=args[1]
219
+ if options[:quick]
220
+ build.needPodInstall = false
221
+ end
210
222
  if build.run
211
223
  update = Luna::Binary::Update.new()
212
224
  update.binary_path = Luna::Binary::Common.instance.binary_path_merged
@@ -11,8 +11,9 @@ module Luna
11
11
  class Build
12
12
  attr_accessor :workspace
13
13
  attr_accessor :scheme
14
+ attr_accessor :needPodInstall
14
15
  def initialize
15
-
16
+ needPodInstall = true
16
17
  end
17
18
 
18
19
  def run
@@ -25,8 +26,12 @@ module Luna
25
26
 
26
27
  def createFrameworks
27
28
  isNext = true
28
- puts "请将二进制开关关闭,确保每个模块都是源码运行,因为二进制的因素有可能source缓存还是会引入二进制".yellow
29
- Install.new(false)
29
+ if needPodInstall
30
+ puts "强制使用源码重新pod install".yellow
31
+ Install.new(false)
32
+ else
33
+ puts "跳过重新pod install的步骤".yellow
34
+ end
30
35
  Common.instance.deleteDirectory(binary_path_arm)
31
36
  tempLunaUploaderPath = Common.instance.tempLunaUploaderPath
32
37
  isNext = command("xcodebuild -workspace #{workspace} -scheme #{scheme} -configuration Debug -derivedDataPath '#{tempLunaUploaderPath}/build/arm/temp'") if isNext == true
@@ -1,7 +1,7 @@
1
1
  module Luna
2
2
  module Binary
3
3
  module Uploader
4
- VERSION = "0.1.26"
4
+ VERSION = "0.1.29"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luna-binary-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - 车德超
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-21 00:00:00.000000000 Z
11
+ date: 2022-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -158,7 +158,7 @@ homepage: https://github.com/YoudaoMobile/luna-binary-uploader
158
158
  licenses:
159
159
  - MIT
160
160
  metadata: {}
161
- post_install_message:
161
+ post_install_message:
162
162
  rdoc_options: []
163
163
  require_paths:
164
164
  - lib
@@ -173,8 +173,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  requirements: []
176
- rubygems_version: 3.1.4
177
- signing_key:
176
+ rubygems_version: 3.2.5
177
+ signing_key:
178
178
  specification_version: 4
179
179
  summary: 词典上传二进制控件
180
180
  test_files: []