Class: U3d::LinuxInstallation
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
#clean_install? ⇒ Boolean
319
320
321
|
# File 'lib/u3d/installation.rb', line 319
def clean_install?
do_not_move? || !(root_path =~ UNITY_DIR_CHECK_LINUX).nil?
end
|
#default_log_file ⇒ Object
277
278
279
|
# File 'lib/u3d/installation.rb', line 277
def default_log_file
"#{ENV['HOME']}/.config/unity3d/Editor.log"
end
|
#exe_path ⇒ Object
281
282
283
|
# File 'lib/u3d/installation.rb', line 281
def exe_path
"#{root_path}/Editor/Unity"
end
|
#module_name_pattern(module_name) ⇒ Object
305
306
307
308
309
310
311
312
313
314
315
316
317
|
# File 'lib/u3d/installation.rb', line 305
def module_name_pattern(module_name)
case module_name
when 'Documentation'
return "#{root_path}/Editor/Data/Documentation/"
when 'StandardAssets'
return "#{root_path}/Editor/Standard Assets/"
when 'MonoDevelop'
return "#{root_path}/MonoDevelop/"
else
UI.crash! "No pattern is known for #{module_name} on Linux"
end
end
|
#path ⇒ Object
285
286
287
288
|
# File 'lib/u3d/installation.rb', line 285
def path
UI.deprecated("path is deprecated. Use root_path instead")
@root_path || @path
end
|
#version ⇒ Object
268
269
270
271
|
# File 'lib/u3d/installation.rb', line 268
def version
path = "#{root_path}/Editor/Data/Resources/unity_builtin_extra"
InstallationUtils.(path)
end
|