nixenvironment 0.0.84 → 0.0.86

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: 885e7d3cf7ebae4ff993b04113e117f5ec20a49e
4
- data.tar.gz: 93dd9c002d247f421509df1c149525b17c29f0a0
3
+ metadata.gz: 850e2fcf7c5547e9c5f73f8052b4b2cb58cd700d
4
+ data.tar.gz: 16e1d5da4bcbd3114af40f9b9a1e229e0b388984
5
5
  SHA512:
6
- metadata.gz: 2afff51da401df95297694be1e515a86ae1f9c02df6d762961314787e737ff2cb3aea0a47fc8aa105943c0c617a3ca2c99207296ca17be968d8ecb7231e161ea
7
- data.tar.gz: 540d502ed38bae8aa4cebdf6068ac6c776ce62099c3b0048984bb039f73b20ba82aab8b888bb6fecc23cea8ee21a19c6e13b35613cf2a57f60f3a4f7b401ae87
6
+ metadata.gz: 2bbe0da14570e211dbc3715990c402e48e8dab2acfcd9cbd84a2b9c74a6250167298c18989bb7189f32001c90a336cef43e90953040758c71063f0513e4d3589
7
+ data.tar.gz: 7d8cbfd5f555cba1eded818a07799d5ed750e1b15d26c7cec2322c4156ad30b5c6057ce8587eca1c7bec44cdbfa9c7d7eded3faa6c02bbb54d2c303685843cc3
data/bin/nixenvironment CHANGED
@@ -80,7 +80,7 @@ command :build do |c|
80
80
  c.option '--keystore_password PASSWORD', String, 'Specify the password for accessing a .keystore file'
81
81
  c.option '--key_alias_name NAME', String, 'Specify the alias name which should be used from .keystore file to sign a release version of an APK'
82
82
  c.option '--key_alias_password PASSWORD', String, 'Specify the password for accessing an alias name'
83
- c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity build (ios | macos | android | winphone)'
83
+ c.option '--unity_platform TARGET PLATFORM', String, 'Select target platform for unity build (ios | macos | android | winphone | webgl)'
84
84
  c.option '--ndsym', 'Disable .dsym generation for ios project'
85
85
  c.option '--ci_build', 'Deprecated' # TODO: remove
86
86
  c.option '--icon_tagger MODE', String, 'Set XcodeIconTagger mode (full, short, off)'
@@ -94,6 +94,7 @@ command :build do |c|
94
94
  need_to_build_ios = true
95
95
  need_to_process_macos_build = false
96
96
  need_to_process_winphone_build = false
97
+ need_to_process_webgl_build = false
97
98
 
98
99
  $build_number = options.build_number
99
100
 
@@ -104,6 +105,7 @@ command :build do |c|
104
105
  need_to_build_ios = unity_platform == 'ios'
105
106
  need_to_process_macos_build = unity_platform == 'macos'
106
107
  need_to_process_winphone_build = unity_platform == 'winphone'
108
+ need_to_process_webgl_build = unity_platform == 'webgl'
107
109
  end
108
110
 
109
111
  if need_to_process_macos_build
@@ -167,6 +169,8 @@ command :build do |c|
167
169
  ensure
168
170
  restore_info_plists
169
171
  end
172
+ elsif need_to_process_webgl_build
173
+ Archiver.make_webgl_zip(UNITY_WEBGL_PROJECT_PATH)
170
174
  end
171
175
  end
172
176
  end
@@ -580,7 +584,7 @@ def unity_build(configuration, unity_platform, unity_path, development_build, co
580
584
  development_build_arg = development_build ? ';developmentBuild=' : ''
581
585
 
582
586
  unity_success = system("#{unity_path} -projectPath '#{Dir.pwd}' -batchmode -logFile -quit -executeMethod NIXBuilder.MakeMacOSBuild -customArgs:'#{build_path_arg}#{development_build_arg}'")
583
- error('iOS build unity error!') unless unity_success
587
+ error('MacOS build unity error!') unless unity_success
584
588
  when 'android'
585
589
  development_build_arg = development_build ? '--development-build' : ''
586
590
  keystore_path_arg = keystore_path ? "--keystore-path #{keystore_path}" : ''
@@ -598,7 +602,13 @@ def unity_build(configuration, unity_platform, unity_path, development_build, co
598
602
  puts 'Generating WinPhone project from UNITY project ...'
599
603
  build_success = system("#{unity_path} -projectPath '#{Dir.pwd}' -batchmode -logFile -quit -executeMethod NIXBuilder.MakeWinPhoneBuild -customArgs:'#{build_path_arg}#{development_build_arg}'")
600
604
  error('WinPhone build unity error!') unless build_success
601
- else
605
+ when 'webgl'
606
+ build_path_arg = "buildPath=#{UNITY_WEBGL_PROJECT_PATH}"
607
+ development_build_arg = development_build ? ';developmentBuild=' : ''
608
+
609
+ unity_success = system("#{unity_path} -projectPath '#{Dir.pwd}' -batchmode -logFile -quit -executeMethod NIXBuilder.MakeWebGLBuild -customArgs:'#{build_path_arg}#{development_build_arg}'")
610
+ error('WebGL build unity error!') unless unity_success
611
+ else
602
612
  error("Error: Unknown unity target platform '#{unity_platform}'!")
603
613
  end
604
614
 
@@ -108,6 +108,19 @@ public static class NIXBuilder
108
108
  BuildPipeline.BuildPlayer(GetScenePaths(), buildPath, buildTarget, GetBuildOptions());
109
109
  }
110
110
 
111
+ #if !UNITY_4_7
112
+ public static void MakeWebGLBuild()
113
+ {
114
+ string buildPath = CommandLineReader.GetCustomArgument(BuildPathArgument);
115
+ CreateFolder(Path.GetDirectoryName(buildPath));
116
+
117
+ BuildTarget buildTarget = BuildTarget.WebGL;
118
+
119
+ EditorUserBuildSettings.SwitchActiveBuildTarget(buildTarget);
120
+ BuildPipeline.BuildPlayer(GetScenePaths(), buildPath, buildTarget, GetBuildOptions());
121
+ }
122
+ #endif
123
+
111
124
  public static void CreateFolder(string thePath)
112
125
  {
113
126
  if (!Directory.Exists(thePath))
@@ -49,7 +49,16 @@ module Nixenvironment
49
49
  def make_resigned_ipa_for_appstore
50
50
  make_ipa(PROFILE_TYPE_APPSTORE, '-Resigned-Appstore', IPA_PRODUCT_RESIGNED_APPSTORE_KEY, IPA_BUNDLE_ID_RESIGNED_APPSTORE_KEY, NAME_FOR_DEPLOYMENT_RESIGNED_APPSTORE_KEY)
51
51
  end
52
-
52
+
53
+ def make_webgl_zip(build_path)
54
+ built_products_dir = build_path
55
+
56
+ new_zip_name = "WebGLBuild"
57
+ new_zip_path = File.join(built_products_dir, new_zip_name) + ZIP_EXT
58
+
59
+ Dir.chdir(built_products_dir) { system("/usr/bin/zip --symlinks --verbose --recurse-paths '#{new_zip_path}' .") }
60
+ end
61
+
53
62
  def make_macos_zip
54
63
  load_last_build_vars = BuildEnvVarsLoader.load_last_build_vars
55
64
  built_products_dir = load_last_build_vars[BUILT_PRODUCTS_DIR_KEY].presence
@@ -67,6 +67,7 @@ module Nixenvironment
67
67
  UNITY_BUILDS_IOS_PATH = 'Builds/iOS'
68
68
  UNITY_BUILDS_MACOS_PATH = 'Builds/MacOS'
69
69
  UNITY_BUILDS_WINPHONE_PATH = 'Builds/WinPhone'
70
+ UNITY_BUILDS_WEBGL_PATH = 'Builds/WebGL'
70
71
  UNITY_BUILDS_IOS_PROJECT = 'Unity-iPhone.xcodeproj'
71
72
  UNITY_BUILDS_IOS_SCHEME = 'Unity-iPhone'
72
73
  UNITY_BUILDS_ICONS_PATH = 'Unity-iPhone/Images.xcassets'
@@ -76,8 +77,9 @@ module Nixenvironment
76
77
  UNITY_EDITOR_DIR = File.join(Dir.pwd, UNITY_ASSETS_EDITOR_PATH)
77
78
  UNITY_IOS_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_IOS_PATH)
78
79
  UNITY_MACOS_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_MACOS_PATH)
80
+ UNITY_WEBGL_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_WEBGL_PATH)
79
81
  UNITY_WINPHONE_PROJECT_PATH = File.join(Dir.pwd, UNITY_BUILDS_WINPHONE_PATH)
80
-
82
+
81
83
  UNITY_MACOS_BUILD_NAME = 'Build'
82
84
  UNITY_MACOS_BUILD_PATH = File.join(UNITY_MACOS_PROJECT_PATH, "#{UNITY_MACOS_BUILD_NAME}#{APP_EXT}")
83
85
 
@@ -1,3 +1,3 @@
1
1
  module Nixenvironment
2
- VERSION = '0.0.84'
2
+ VERSION = '0.0.86'
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.84
4
+ version: 0.0.86
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-04-13 00:00:00.000000000 Z
12
+ date: 2016-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cocoapods