xcodebuilder 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xcode_builder.rb +10 -5
- metadata +4 -4
data/lib/xcode_builder.rb
CHANGED
@@ -23,6 +23,7 @@ module XcodeBuilder
|
|
23
23
|
:app_extension => "app",
|
24
24
|
:signing_identity => nil,
|
25
25
|
:package_destination_path => "./pkg",
|
26
|
+
:zip_artifacts => false,
|
26
27
|
:skip_dsym => false,
|
27
28
|
:arch => nil,
|
28
29
|
:skip_clean => ENV.fetch('SKIPCLEAN', false),
|
@@ -81,11 +82,11 @@ module XcodeBuilder
|
|
81
82
|
if(@configuration.sdk.eql? "iphoneos") then
|
82
83
|
package_ios_app
|
83
84
|
package_dsym
|
84
|
-
package_artifact
|
85
|
+
package_artifact unless !@configuration.zip_artifacts
|
85
86
|
elsif (@configuration.sdk.eql? "macosx") then
|
86
87
|
package_macos_app
|
87
88
|
package_dsym
|
88
|
-
package_artifact
|
89
|
+
package_artifact unless !@configuration.zip_artifacts
|
89
90
|
else
|
90
91
|
package_simulator_app
|
91
92
|
end
|
@@ -168,6 +169,9 @@ module XcodeBuilder
|
|
168
169
|
cmd << "2>&1 %s ../build.output" % (@configuration.verbose ? '| tee' : '>')
|
169
170
|
cmd = cmd.join(" ")
|
170
171
|
system(cmd)
|
172
|
+
|
173
|
+
FileUtils.rm_rf "#{@configuration.app_name}.#{@configuration.app_extension}.dSYM" unless !File.exists? "#{@configuration.app_name}.#{@configuration.app_extension}.dSYM"
|
174
|
+
|
171
175
|
# back to working directory
|
172
176
|
Dir.chdir current_dir
|
173
177
|
end
|
@@ -191,8 +195,9 @@ module XcodeBuilder
|
|
191
195
|
system cmd.join " "
|
192
196
|
|
193
197
|
# delete all the artifacts but the .app. which will be needed by the automation builds
|
194
|
-
|
195
|
-
FileUtils.rm_rf
|
198
|
+
puts "the paaaaath #{@configuration.dsym_name}"
|
199
|
+
FileUtils.rm_rf @configuration.dsym_name unless !File.exists? @configuration.dsym_name
|
200
|
+
FileUtils.rm_rf @configuration.ipa_name unless !File.exists? @configuration.ipa_name
|
196
201
|
|
197
202
|
# back to working directory
|
198
203
|
Dir.chdir current_dir
|
@@ -240,7 +245,7 @@ module XcodeBuilder
|
|
240
245
|
cmd << "--allow-warnings"
|
241
246
|
|
242
247
|
print "Pushing to CocoaPod..."
|
243
|
-
result = system
|
248
|
+
result = system(cmd.join " ")
|
244
249
|
raise "** Pod push failed **" if !result
|
245
250
|
puts "Done."
|
246
251
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodebuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 12
|
10
|
+
version: 0.0.12
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Olivier Larivain
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-10-
|
18
|
+
date: 2013-10-18 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: CFPropertyList
|