xcodebuilder 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. data/lib/xcode_builder.rb +8 -1
  2. metadata +4 -4
data/lib/xcode_builder.rb CHANGED
@@ -21,6 +21,7 @@ module XcodeBuilder
21
21
  :scheme => nil,
22
22
  :app_name => nil,
23
23
  :app_extension => "app",
24
+ :signing_identity => nil,
24
25
  :package_destination_path => "./pkg",
25
26
  :skip_dsym => false,
26
27
  :arch => nil,
@@ -35,6 +36,10 @@ module XcodeBuilder
35
36
  )
36
37
  @namespace = namespace
37
38
  yield @configuration if block_given?
39
+
40
+ # expand the info plist path, as it's likely to be relative and we'll be fucking
41
+ # around with the cwd later on.
42
+ @configuration.info_plist = File.expand_path @configuration.info_plist unless @configuration.info_plist == nil
38
43
  end
39
44
 
40
45
  def xcodebuild(*args)
@@ -74,7 +79,7 @@ module XcodeBuilder
74
79
  # so do that part only on iphoneos/macosx SDKs
75
80
  #
76
81
  if(@configuration.sdk.eql? "iphoneos") then
77
- package_ios_ipa
82
+ package_ios_app
78
83
  package_dsym
79
84
  package_artifact
80
85
  elsif (@configuration.sdk.eql? "macosx") then
@@ -178,11 +183,13 @@ module XcodeBuilder
178
183
  # zip final package
179
184
  cmd = []
180
185
  cmd << "zip"
186
+ cmd << "-r"
181
187
  cmd << @configuration.zipped_package_name
182
188
  cmd << @configuration.dsym_name unless @configuration.skip_dsym
183
189
  cmd << @configuration.ipa_name unless !@configuration.sdk.eql? "iphoneos"
184
190
  cmd << "#{@configuration.app_name}.#{@configuration.app_extension}" unless !@configuration.sdk.eql? "macosx"
185
191
  cmd << "2>&1 %s ../build.output" % (@configuration.verbose ? '| tee' : '>')
192
+
186
193
  system cmd.join " "
187
194
 
188
195
  # delete all the artifacts but the .app. which will be needed by the automation builds
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: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
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-01-20 00:00:00 Z
18
+ date: 2013-01-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: CFPropertyList