shenzhen 0.14.1 → 0.14.2
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/Gemfile.lock +1 -1
- data/lib/shenzhen/commands/build.rb +20 -12
- data/lib/shenzhen/version.rb +1 -1
- metadata +2 -4
- data/shenzhen-0.13.2.gem +0 -0
- data/shenzhen-0.14.0.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97524b3d4b8575b141cc7c66cb9e4d8bd9be1a00
|
|
4
|
+
data.tar.gz: 70fae6a5c3dfdf0ef75e4cc60198829b28c83f54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 31c9e8b8a97c479f96e472a635cbf6779e4c891fb93d239440c52988f1dc7f4e14cb8f68c82a6fd48134699182425751f10e5f76a1b8decf92edb27cf5c04163
|
|
7
|
+
data.tar.gz: 10771d2596902b64a5154ec6a3141b90870145182ea5cc8a7b8d1b175929744a1948b2b5883384b152d055e38dc7febdf47c079954220c97074d025a17fcc2d8
|
data/Gemfile.lock
CHANGED
|
@@ -122,18 +122,20 @@ command :build do |c|
|
|
|
122
122
|
end
|
|
123
123
|
end
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
125
|
+
if watchkit_present?
|
|
126
|
+
log "Adding WatchKit support files", "#{xcode}/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/Library/Application Support/WatchKit/WK"
|
|
127
|
+
Dir.mktmpdir do |tmpdir|
|
|
128
|
+
# Make watchkit support directory
|
|
129
|
+
watchkit_support = File.join(tmpdir, "WatchKitSupport")
|
|
130
|
+
Dir.mkdir(watchkit_support)
|
|
131
|
+
|
|
132
|
+
# Copy WK from Xcode into WatchKitSupport
|
|
133
|
+
FileUtils.copy_file("#{xcode}/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/Library/Application Support/WatchKit/WK", File.join(watchkit_support, "WK"))
|
|
134
|
+
|
|
135
|
+
# Add "WatchKitSupport" to the .ipa archive
|
|
136
|
+
Dir.chdir(tmpdir) do
|
|
137
|
+
abort unless system %{zip --recurse-paths "#{@ipa_path}" "WatchKitSupport" #{'> /dev/null' unless $verbose}}
|
|
138
|
+
end
|
|
137
139
|
end
|
|
138
140
|
end
|
|
139
141
|
|
|
@@ -197,4 +199,10 @@ command :build do |c|
|
|
|
197
199
|
@configuration = choose "Select a configuration:", *configurations
|
|
198
200
|
end
|
|
199
201
|
end
|
|
202
|
+
|
|
203
|
+
def watchkit_present?
|
|
204
|
+
Dir["#{@app_path}/**/*.plist"].any? do |plist_path|
|
|
205
|
+
`/usr/libexec/PlistBuddy -c 'Print WKWatchKitApp' '#{plist_path}' 2>&1`.strip == 'true'
|
|
206
|
+
end
|
|
207
|
+
end
|
|
200
208
|
end
|
data/lib/shenzhen/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shenzhen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.14.
|
|
4
|
+
version: 0.14.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mattt Thompson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: commander
|
|
@@ -237,8 +237,6 @@ files:
|
|
|
237
237
|
- ./LICENSE
|
|
238
238
|
- ./Rakefile
|
|
239
239
|
- ./README.md
|
|
240
|
-
- ./shenzhen-0.13.2.gem
|
|
241
|
-
- ./shenzhen-0.14.0.gem
|
|
242
240
|
- ./shenzhen.gemspec
|
|
243
241
|
- bin/ipa
|
|
244
242
|
homepage: http://nomad-cli.com
|
data/shenzhen-0.13.2.gem
DELETED
|
Binary file
|
data/shenzhen-0.14.0.gem
DELETED
|
Binary file
|