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
293
294
295
|
# File 'lib/u3d/installation.rb', line 293
def clean_install?
do_not_move? || !(root_path =~ UNITY_DIR_CHECK_LINUX).nil?
end
|
#default_log_file ⇒ Object
254
255
256
|
# File 'lib/u3d/installation.rb', line 254
def default_log_file
"#{ENV['HOME']}/.config/unity3d/Editor.log"
end
|
#exe_path ⇒ Object
258
259
260
|
# File 'lib/u3d/installation.rb', line 258
def exe_path
"#{root_path}/Editor/Unity"
end
|
#module_name_pattern(module_name) ⇒ Object
279
280
281
282
283
284
285
286
287
288
289
290
291
|
# File 'lib/u3d/installation.rb', line 279
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
262
263
264
265
|
# File 'lib/u3d/installation.rb', line 262
def path
UI.deprecated("path is deprecated. Use root_path instead")
@root_path || @path
end
|
#version ⇒ Object
238
239
240
241
242
243
244
245
246
247
248
|
# File 'lib/u3d/installation.rb', line 238
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
|