xcodebuilder 0.1.10 → 0.1.11
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 +4 -4
- data/lib/xcode_builder.rb +11 -10
- data/lib/xcode_builder/configuration.rb +12 -12
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 263cb7ed077e9cb06eef150cf1f2d3f1af821009
|
4
|
+
data.tar.gz: e8ad4de1c100712d0a693795019a8c15078da4e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bad0fcfb9490cd8b23f01d9d47682fdcc230386a632853f9890113b39fdaab1f2c396793f780a8b974bc195e0af5672f3801f6fb789b800ca5182a9d3a620554
|
7
|
+
data.tar.gz: 678638c78b94600322406beccc94a1b80285c63fac6eab0b868e700c0f5e76fa2a261bba0feae753d26b90e919fe4f6e68f71c73a29f83b3e3cfe74d2af4325d
|
data/lib/xcode_builder.rb
CHANGED
@@ -13,6 +13,7 @@ module XcodeBuilder
|
|
13
13
|
@configuration = Configuration.new(
|
14
14
|
:configuration => "Release",
|
15
15
|
:build_dir => "build",
|
16
|
+
:sdk => "iphoneos",
|
16
17
|
:project_file_path => nil,
|
17
18
|
:workspace_file_path => nil,
|
18
19
|
:scheme => nil,
|
@@ -53,7 +54,7 @@ module XcodeBuilder
|
|
53
54
|
|
54
55
|
return master_repo + Array(@configuration.pod_repo_sources)
|
55
56
|
end
|
56
|
-
|
57
|
+
|
57
58
|
# desc "Clean the Build"
|
58
59
|
def clean
|
59
60
|
unless @configuration.skip_clean
|
@@ -62,7 +63,7 @@ module XcodeBuilder
|
|
62
63
|
puts "Done"
|
63
64
|
end
|
64
65
|
end
|
65
|
-
|
66
|
+
|
66
67
|
# desc "Build the beta release of the app"
|
67
68
|
def build
|
68
69
|
clean unless @configuration.skip_clean
|
@@ -75,21 +76,21 @@ module XcodeBuilder
|
|
75
76
|
raise "** BUILD FAILED **" unless success
|
76
77
|
puts "Done"
|
77
78
|
end
|
78
|
-
|
79
|
+
|
79
80
|
# desc "Package the release as a distributable archive"
|
80
81
|
def package
|
81
82
|
build
|
82
83
|
|
83
|
-
print "Packaging and Signing..."
|
84
|
-
if (@configuration.signing_identity != nil) then
|
85
|
-
puts ""
|
86
|
-
print "Signing identity: #{@configuration.signing_identity}"
|
84
|
+
print "Packaging and Signing..."
|
85
|
+
if (@configuration.signing_identity != nil) then
|
86
|
+
puts ""
|
87
|
+
print "Signing identity: #{@configuration.signing_identity}"
|
87
88
|
end
|
88
89
|
|
89
90
|
# trash and create the dist IPA path if needed
|
90
91
|
FileUtils.rm_rf @configuration.package_destination_path unless !File.exists? @configuration.package_destination_path
|
91
92
|
FileUtils.mkdir_p @configuration.package_destination_path
|
92
|
-
|
93
|
+
|
93
94
|
# Construct the IPA and Sign it
|
94
95
|
cmd = []
|
95
96
|
cmd << "/usr/bin/xcrun"
|
@@ -108,7 +109,7 @@ module XcodeBuilder
|
|
108
109
|
cmd << "2>&1 /dev/null"
|
109
110
|
cmd = cmd.join(" ")
|
110
111
|
system(cmd)
|
111
|
-
|
112
|
+
|
112
113
|
if @configuration.watch_app then
|
113
114
|
reinject_wk_stub_in_ipa
|
114
115
|
end
|
@@ -162,7 +163,7 @@ module XcodeBuilder
|
|
162
163
|
# deploy or package depending on configuration
|
163
164
|
if @configuration.deployment_strategy then
|
164
165
|
deploy
|
165
|
-
else
|
166
|
+
else
|
166
167
|
package
|
167
168
|
end
|
168
169
|
|
@@ -21,19 +21,19 @@ module XcodeBuilder
|
|
21
21
|
args << "-project '#{project_file_path}'" if project_file_path
|
22
22
|
end
|
23
23
|
|
24
|
-
args << "-sdk
|
25
|
-
|
24
|
+
args << "-sdk #{sdk}"
|
25
|
+
|
26
26
|
args << "-configuration '#{configuration}'"
|
27
27
|
args << "BUILD_DIR=\"#{File.expand_path build_dir}\""
|
28
|
-
|
28
|
+
|
29
29
|
if xcodebuild_extra_args
|
30
30
|
args.concat xcodebuild_extra_args if xcodebuild_extra_args.is_a? Array
|
31
31
|
args << "#{xcodebuild_extra_args}" if xcodebuild_extra_args.is_a? String
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
args
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
def app_file_name
|
38
38
|
raise ArgumentError, "app_name or target must be set in the BetaBuilder configuration block" if app_name.nil?
|
39
39
|
"#{app_name}.app"
|
@@ -54,7 +54,7 @@ module XcodeBuilder
|
|
54
54
|
version_line = file.gets
|
55
55
|
end while version_line.eql? "\n"
|
56
56
|
|
57
|
-
if match = version_line.match(/\s*version\s*=\s*["'](.*)["']\s*/i)
|
57
|
+
if match = version_line.match(/\s*version\s*=\s*["'](.*)["']\s*/i)
|
58
58
|
version = match.captures
|
59
59
|
end
|
60
60
|
return version[0]
|
@@ -121,18 +121,18 @@ module XcodeBuilder
|
|
121
121
|
def ipa_name
|
122
122
|
prefix = app_name == nil ? target : app_name
|
123
123
|
"#{prefix}#{built_app_long_version_suffix}.ipa"
|
124
|
-
end
|
124
|
+
end
|
125
125
|
|
126
126
|
def built_app_long_version_suffix
|
127
127
|
if build_number == nil then
|
128
128
|
""
|
129
|
-
else
|
129
|
+
else
|
130
130
|
"-#{build_number}"
|
131
131
|
end
|
132
132
|
end
|
133
|
-
|
133
|
+
|
134
134
|
def built_app_path
|
135
|
-
File.join("#{build_dir}", "#{configuration}
|
135
|
+
File.join("#{build_dir}", "#{configuration}-#{sdk}", "#{app_file_name}")
|
136
136
|
end
|
137
137
|
|
138
138
|
def ipa_path
|
@@ -142,7 +142,7 @@ module XcodeBuilder
|
|
142
142
|
def app_bundle_path
|
143
143
|
"#{package_destination_path}/#{app_name}.app"
|
144
144
|
end
|
145
|
-
|
145
|
+
|
146
146
|
def deploy_using(strategy_name, &block)
|
147
147
|
if DeploymentStrategies.valid_strategy?(strategy_name.to_sym)
|
148
148
|
self.deployment_strategy = DeploymentStrategies.build(strategy_name, self)
|
@@ -162,4 +162,4 @@ module XcodeBuilder
|
|
162
162
|
end
|
163
163
|
end
|
164
164
|
end
|
165
|
-
end
|
165
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcodebuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Olivier Larivain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: CFPropertyList
|