nixenvironment 0.0.69 → 0.0.70

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d35cd4aa2d61d3d735e5f5a69600af479dc28cb7
4
- data.tar.gz: 6fca4e5c7717eba21d548bb7543170eea7d0cf56
3
+ metadata.gz: 23b91b030df9c768306cb2aca94062c3d660b51b
4
+ data.tar.gz: fbf507b463a92dbef8f4688b31009b144163b931
5
5
  SHA512:
6
- metadata.gz: 99fde8218c5802d03af77e6c81b6ec0acbb58afe50f31bf696bc05cf334c6e629eb929578e5077f7efc5c4c8ed29ea71329e32498d4910814b5ec241d1876cf2
7
- data.tar.gz: adcb08b12b4c491924e0c34945def72488d709a46c136afc67d3bcacb32196a68edbe92616ef7517efbf9008ea1cc9544af5b3b8813b3b36bc18bb85ec8866c8
6
+ metadata.gz: 450a99d55ebccf32afc92c587d02f9c826ed95e116392280b15ea464a9a2343b742d6bfbceb69f58d5115ea33bc1bda10f2733d4b8001334c9d9fce09e149427
7
+ data.tar.gz: 1c709fce51785244d8a5d53e75588d1763eecc9b80e85819d0f52a1116fe5bc73ae4a942e7b2580bfafdedd09e764cbae00a581f89f02ac555080cca36bddddd
data/bin/nixenvironment CHANGED
@@ -94,10 +94,12 @@ command :build do |c|
94
94
  plist_path = File.join(UNITY_MACOS_BUILD_PATH, 'Contents/Info.plist')
95
95
 
96
96
  info_plist = Plist.from_file(plist_path)
97
+ info_plist['RevisionNumber'] = revision
97
98
  info_plist['CFBundleVersion'] = monotonic_revision
98
99
  info_plist['CFBundleShortVersionString'] = options.app_version if options.app_version.present?
99
100
  info_plist['CFBundleName'] = $resigned_bundle_name if $resigned_bundle_name.present?
100
101
  info_plist['CFBundleDisplayName'] = $resigned_bundle_name if $resigned_bundle_name.present?
102
+ info_plist['CFBundleIdentifier'] = $bundle_id if $bundle_id
101
103
  info_plist.save(plist_path, Plist::FORMAT_XML)
102
104
 
103
105
  read_config_settings
@@ -385,6 +387,10 @@ def update_config_settings(key, value, table, need_separator)
385
387
  table.add_separator if need_separator
386
388
  end
387
389
 
390
+ def revision
391
+ %x[ source _last_revision.sh && echo ${REVISION} ].strip!
392
+ end
393
+
388
394
  def monotonic_revision
389
395
  %x[ source _last_revision.sh && echo ${MONOTONIC_REVISION} ].strip!
390
396
  end
@@ -603,7 +609,6 @@ def backup_info_plist(product_settings_path, description)
603
609
  end
604
610
 
605
611
  def update_info_plists(config)
606
- revision = %x[ source _last_revision.sh && echo ${REVISION} ].strip!
607
612
  monoc_revision = monotonic_revision
608
613
  bundle_id = @config_settings[BUNDLE_ID_KEY]
609
614
 
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.69'
2
+ VERSION = '0.0.70'
3
3
  end
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.69
4
+ version: 0.0.70
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karen