xcodebuilder 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xcode_builder.rb +13 -13
- metadata +4 -4
data/lib/xcode_builder.rb
CHANGED
@@ -123,22 +123,22 @@ module XcodeBuilder
|
|
123
123
|
|
124
124
|
def package_macos_app
|
125
125
|
# clean the pkg folder: create it if it doesn't exist yet
|
126
|
-
FileUtils.mkdir_p @configuration.package_destination_path unless File.exists? @configuration.package_destination_path
|
126
|
+
FileUtils.mkdir_p "\"#{@configuration.package_destination_path}\"" unless File.exists? "\"#{@configuration.package_destination_path}\""
|
127
127
|
# and remove an existing app_bundle_path if it exists
|
128
|
-
FileUtils.rm_rf @configuration.app_bundle_path unless !File.exists? @configuration.app_bundle_path
|
128
|
+
FileUtils.rm_rf "\"#{@configuration.app_bundle_path}\"" unless !File.exists? "\"#{@configuration.app_bundle_path}\""
|
129
129
|
|
130
130
|
# now we can properly copy the app bundle path over.
|
131
|
-
FileUtils.cp_r @configuration.built_app_path, "#{@configuration.package_destination_path}"
|
131
|
+
FileUtils.cp_r "\"#{@configuration.built_app_path}\"", "\"#{@configuration.package_destination_path}\""
|
132
132
|
end
|
133
133
|
|
134
134
|
def package_simulator_app
|
135
135
|
# clean the pkg folder: create it if it doesn't exist yet
|
136
|
-
FileUtils.mkdir_p @configuration.package_destination_path unless File.exists? @configuration.package_destination_path
|
136
|
+
FileUtils.mkdir_p "\"#{@configuration.package_destination_path}\"" unless File.exists? "\"#{@configuration.package_destination_path}\""
|
137
137
|
# and remove an existing app_bundle_path if it exists
|
138
|
-
FileUtils.rm_rf @configuration.app_bundle_path unless !File.exists? @configuration.app_bundle_path
|
138
|
+
FileUtils.rm_rf "\"#{@configuration.app_bundle_path}\"" unless !File.exists? "\"#{@configuration.app_bundle_path}\""
|
139
139
|
|
140
140
|
# now we can properly copy the app bundle path over.
|
141
|
-
FileUtils.cp_r @configuration.built_app_path, "#{@configuration.package_destination_path}"
|
141
|
+
FileUtils.cp_r "\"#{@configuration.built_app_path}\"", "\"#{@configuration.package_destination_path}\""
|
142
142
|
end
|
143
143
|
|
144
144
|
# desc "Zips the dSYM to the package folder"
|
@@ -161,8 +161,8 @@ module XcodeBuilder
|
|
161
161
|
cmd = []
|
162
162
|
cmd << "zip"
|
163
163
|
cmd << "-r"
|
164
|
-
cmd << dsym_target_path
|
165
|
-
cmd << "#{@configuration.app_name}.#{@configuration.app_extension}.dSYM"
|
164
|
+
cmd << "\"#{dsym_target_path}\""
|
165
|
+
cmd << "\"#{@configuration.app_name}.#{@configuration.app_extension}.dSYM\""
|
166
166
|
|
167
167
|
puts "Running #{cmd.join(" ")}" if @configuration.verbose
|
168
168
|
cmd << "2>&1 %s ../build.output" % (@configuration.verbose ? '| tee' : '>')
|
@@ -182,17 +182,17 @@ module XcodeBuilder
|
|
182
182
|
cmd = []
|
183
183
|
cmd << "zip"
|
184
184
|
cmd << "-r"
|
185
|
-
cmd << @configuration.zipped_package_name
|
186
|
-
cmd << @configuration.dsym_name unless @configuration.skip_dsym
|
187
|
-
cmd << @configuration.ipa_name unless !@configuration.sdk.eql? "iphoneos"
|
188
|
-
cmd << "#{@configuration.app_name}.#{@configuration.app_extension}" unless !@configuration.sdk.eql? "macosx"
|
185
|
+
cmd << "\"#{@configuration.zipped_package_name}\""
|
186
|
+
cmd << "\"#{@configuration.dsym_name}\"" unless @configuration.skip_dsym
|
187
|
+
cmd << "\"#{@configuration.ipa_name}\"" unless !@configuration.sdk.eql? "iphoneos"
|
188
|
+
cmd << "\"#{@configuration.app_name}.#{@configuration.app_extension}\"" unless !@configuration.sdk.eql? "macosx"
|
189
189
|
cmd << "2>&1 %s ../build.output" % (@configuration.verbose ? '| tee' : '>')
|
190
190
|
|
191
191
|
system cmd.join " "
|
192
192
|
|
193
193
|
# delete all the artifacts but the .app. which will be needed by the automation builds
|
194
194
|
File.delete @configuration.dsym_name unless !File.exists? @configuration.dsym_name
|
195
|
-
FileUtils.rm_rf "#{@configuration.app_name}.#{@configuration.app_extension}.dSYM" unless !File.exists? "#{@configuration.app_name}.#{@configuration.app_extension}.dSYM"
|
195
|
+
FileUtils.rm_rf "\"#{@configuration.app_name}.#{@configuration.app_extension}.dSYM\"" unless !File.exists? "\"#{@configuration.app_name}.#{@configuration.app_extension}.dSYM\""
|
196
196
|
|
197
197
|
# back to working directory
|
198
198
|
Dir.chdir current_dir
|
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: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
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-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: CFPropertyList
|