Class: U3d::MacInstallation
Constant Summary
Constants inherited
from Installation
Installation::NOT_PLAYBACKENGINE_PACKAGES, Installation::PACKAGE_ALIASES
Instance Attribute Summary
Attributes inherited from Installation
#root_path
Instance Method Summary
collapse
create, #do_not_move!, #do_not_move?, #initialize, #package_installed?
Instance Method Details
#build_number ⇒ Object
178
179
180
|
# File 'lib/u3d/installation.rb', line 178
def build_number
plist['UnityBuildNumber']
end
|
#clean_install? ⇒ Boolean
225
226
227
|
# File 'lib/u3d/installation.rb', line 225
def clean_install?
do_not_move? || !(root_path =~ UNITY_DIR_CHECK).nil?
end
|
#default_log_file ⇒ Object
182
183
184
|
# File 'lib/u3d/installation.rb', line 182
def default_log_file
"#{ENV['HOME']}/Library/Logs/Unity/Editor.log"
end
|
#exe_path ⇒ Object
186
187
188
|
# File 'lib/u3d/installation.rb', line 186
def exe_path
"#{root_path}/Unity.app/Contents/MacOS/Unity"
end
|
#module_name_pattern(module_name) ⇒ Object
212
213
214
215
216
217
218
219
220
221
222
223
|
# File 'lib/u3d/installation.rb', line 212
def module_name_pattern(module_name)
case module_name
when 'Documentation'
return "#{root_path}/Documentation/"
when 'StandardAssets'
return "#{root_path}/Standard Assets/"
when 'MonoDevelop'
return "#{root_path}/MonoDevelop.app/"
else
UI.crash! "No pattern is known for #{module_name} on Mac"
end
end
|
#packages ⇒ Object
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
# File 'lib/u3d/installation.rb', line 197
def packages
pack = []
IvyPlaybackEngineUtils.list_module_configs(root_path).each do |mpath|
pack << IvyPlaybackEngineUtils.module_name(mpath)
end
ModulePlaybackEngineUtils.list_module_configs(root_path).each do |mpath|
pack << ModulePlaybackEngineUtils.module_name(mpath)
end
NOT_PLAYBACKENGINE_PACKAGES.each do |module_name|
pack << module_name unless Dir[module_name_pattern(module_name)].empty?
end
pack
end
|
#path ⇒ Object
190
191
192
193
194
195
|
# File 'lib/u3d/installation.rb', line 190
def path
UI.deprecated("path is deprecated. Use root_path instead")
return @path if @path
"#{@root_path}/Unity.app"
end
|
#version ⇒ Object
174
175
176
|
# File 'lib/u3d/installation.rb', line 174
def version
plist['CFBundleVersion']
end
|