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
285
286
287
|
# File 'lib/u3d/installation.rb', line 285
def clean_install?
do_not_move? || !(root_path =~ UNITY_DIR_CHECK_LINUX).nil?
end
|
#default_log_file ⇒ Object
246
247
248
|
# File 'lib/u3d/installation.rb', line 246
def default_log_file
"#{ENV['HOME']}/.config/unity3d/Editor.log"
end
|
#exe_path ⇒ Object
250
251
252
|
# File 'lib/u3d/installation.rb', line 250
def exe_path
"#{root_path}/Editor/Unity"
end
|
#module_name_pattern(module_name) ⇒ Object
271
272
273
274
275
276
277
278
279
280
281
282
283
|
# File 'lib/u3d/installation.rb', line 271
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
254
255
256
257
|
# File 'lib/u3d/installation.rb', line 254
def path
UI.deprecated("path is deprecated. Use root_path instead")
@root_path || @path
end
|
#version ⇒ Object
230
231
232
233
234
235
236
237
238
239
240
|
# File 'lib/u3d/installation.rb', line 230
def version
path = "#{root_path}/Editor/Data/"
package = PlaybackEngineUtils.list_module_configs(path).first
raise "Couldn't find a module under #{path}" unless package
version = PlaybackEngineUtils.unity_version(package)
if (m = version.match(/^(.*)x(.*)Linux$/))
version = "#{m[1]}#{m[2]}"
end
version
end
|