class U3d::LinuxDependencies

Constants

DEPENDENCIES

see forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256/

Public Class Methods

install() click to toggle source
# File lib/u3d/installer.rb, line 566
def self.install
  if `which dpkg` != ''
    prefix = 'apt-get -y install'
  elsif `which rpm` != ''
    prefix = 'yum -y install'
  else
    raise 'Cannot install dependencies on your Linux distribution'
  end

  if UI.interactive?
    return unless UI.confirm "Install dependencies? (#{DEPENDENCIES.length} dependency(ies) to install)"
  end
  U3dCore::CommandExecutor.execute(command: "#{prefix} #{DEPENDENCIES.join(' ')}", admin: true)
end