class U3d::LinuxInstallation

Public Instance Methods

build_number() click to toggle source
# File lib/u3d/installation.rb, line 273
def build_number
  @build_number ||= LinuxInstallationHelper.new.find_build_number(root_path)
end
clean_install?() click to toggle source
# File lib/u3d/installation.rb, line 319
def clean_install?
  do_not_move? || !(root_path =~ UNITY_DIR_CHECK_LINUX).nil?
end
default_log_file() click to toggle source
# File lib/u3d/installation.rb, line 277
def default_log_file
  "#{ENV['HOME']}/.config/unity3d/Editor.log"
end
exe_path() click to toggle source
# File lib/u3d/installation.rb, line 281
def exe_path
  "#{root_path}/Editor/Unity"
end
module_name_pattern(module_name) click to toggle source
# File lib/u3d/installation.rb, line 305
def module_name_pattern(module_name)
  # FIXME: we are not yet sure where these modules will end up yet
  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
packages() click to toggle source
# File lib/u3d/installation.rb, line 290
def packages
  path = "#{root_path}/Editor/Data/"
  pack = []
  IvyPlaybackEngineUtils.list_module_configs(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() click to toggle source
# File lib/u3d/installation.rb, line 285
def path
  UI.deprecated("path is deprecated. Use root_path instead")
  @root_path || @path
end
version() click to toggle source
# File lib/u3d/installation.rb, line 268
def version
  path = "#{root_path}/Editor/Data/Resources/unity_builtin_extra"
  InstallationUtils.read_version_from_unity_builtin_extra(path)
end