nixenvironment 0.0.90 → 0.0.91
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/nixenvironment/archiver.rb +18 -2
- data/lib/nixenvironment/version.rb +1 -1
- data/lib/nixenvironment/xcodebuild.rb +1 -1
- 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: b933ced25619aafbc3e120a074af20bb97388be2
|
4
|
+
data.tar.gz: 56fa4bea69fa8558498678f977bb5974994e3d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49e62f0a9130d2e1cde4ad97339b48add91a3d6fddd013e885ff5e67e565fb776949dafb1d8b5d7b3df4115b3a06f8575915874677b83b8bc1726b08c3c9e135
|
7
|
+
data.tar.gz: ca221cabac30e35739a46c3d0f34a4f751d3a9595bdf8ed2acdfc342b31d110e09c3e29b620558deb5145361bcca79bff56a14287f42b7735b7346efb638a4e5
|
@@ -258,14 +258,31 @@ module Nixenvironment
|
|
258
258
|
widget_profile_path, widget_identity_name, is_appstore)
|
259
259
|
Dir.mktmpdir do |tmp_dir|
|
260
260
|
dest_app_dir = File.join(tmp_dir, "Payload")
|
261
|
+
swift_support_dir = File.join(tmp_dir, "SwiftSupport")
|
261
262
|
dest_app_product_path = File.join(dest_app_dir, File.basename(app_product_path))
|
263
|
+
frameworks_path = File.join(dest_app_product_path, 'Frameworks')
|
262
264
|
|
263
265
|
puts "--> Create '#{dest_app_dir}' ..."
|
264
266
|
Dir.mkdir(dest_app_dir)
|
265
267
|
|
268
|
+
puts "--> Create '#{swift_support_dir}' ..."
|
269
|
+
Dir.mkdir(swift_support_dir)
|
270
|
+
|
266
271
|
puts "--> Copy '#{app_product_path}' into '#{dest_app_product_path}' ..."
|
267
272
|
FileUtils.cp_r(app_product_path, dest_app_product_path)
|
268
273
|
|
274
|
+
# Copy Swift Support files if needed
|
275
|
+
Dir.entries(frameworks_path).reject{ |e| File.directory?(e) || File.extname(e) == '.framework' }.each do |fw|
|
276
|
+
swift_lib = "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/#{fw}"
|
277
|
+
|
278
|
+
if File.exist?(swift_lib)
|
279
|
+
puts "--> Copy '#{swift_lib}' into '#{swift_support_dir}' ..."
|
280
|
+
FileUtils.cp(swift_lib, swift_support_dir)
|
281
|
+
else
|
282
|
+
puts_warning "There's no #{swift_lib} !!!"
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
269
286
|
set_plist_values_in_app_path(app_product_path, 'Configuration' => 'Appstore') if is_appstore
|
270
287
|
|
271
288
|
# replace provision, rename bundle_id and bundle_name
|
@@ -318,7 +335,6 @@ module Nixenvironment
|
|
318
335
|
end
|
319
336
|
|
320
337
|
# codesign frameworks
|
321
|
-
frameworks_path = File.join(dest_app_product_path, 'Frameworks')
|
322
338
|
if Dir.exist?(frameworks_path)
|
323
339
|
puts_header "--> Codesign frameworks:"
|
324
340
|
Dir.glob(File.join(frameworks_path, '*.framework')) do |framework|
|
@@ -655,7 +671,7 @@ module Nixenvironment
|
|
655
671
|
profile_name = plist['Name']
|
656
672
|
app_id = plist[ENTITLEMENTS_KEY][APPLICATION_IDENTIFIER_KEY]
|
657
673
|
certs = plist['DeveloperCertificates']
|
658
|
-
expiration_date = plist[
|
674
|
+
expiration_date = plist['ExpirationDate']
|
659
675
|
devices = plist['ProvisionedDevices']
|
660
676
|
device_count = devices.present? ? devices.size : 0
|
661
677
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nixenvironment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.91
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cocoapods
|