Class: U3d::MacInstallation
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
permalink
#build_number ⇒ Object
[View source]
178
179
180
|
# File 'lib/u3d/installation.rb', line 178
def build_number
plist['UnityBuildNumber']
end
|
permalink
#clean_install? ⇒ Boolean
[View source]
225
226
227
|
# File 'lib/u3d/installation.rb', line 225
def clean_install?
do_not_move? || !(root_path =~ UNITY_DIR_CHECK).nil?
end
|
permalink
#default_log_file ⇒ Object
[View source]
182
183
184
|
# File 'lib/u3d/installation.rb', line 182
def default_log_file
"#{ENV['HOME']}/Library/Logs/Unity/Editor.log"
end
|
permalink
#exe_path ⇒ Object
[View source]
186
187
188
|
# File 'lib/u3d/installation.rb', line 186
def exe_path
"#{root_path}/Unity.app/Contents/MacOS/Unity"
end
|
permalink
#module_name_pattern(module_name) ⇒ Object
[View source]
212
213
214
215
216
217
218
219
220
221
222
223
|
# File 'lib/u3d/installation.rb', line 212
def module_name_pattern(module_name)
case module_name
when 'Documentation'
return "#{root_path}/Documentation/"
when 'StandardAssets'
return "#{root_path}/Standard Assets/"
when 'MonoDevelop'
return "#{root_path}/MonoDevelop.app/"
else
UI.crash! "No pattern is known for #{module_name} on Mac"
end
end
|
[View source]
190
191
192
193
194
195
|
# File 'lib/u3d/installation.rb', line 190
def path
UI.deprecated("path is deprecated. Use root_path instead")
return @path if @path
"#{@root_path}/Unity.app"
end
|
[View source]
174
175
176
|
# File 'lib/u3d/installation.rb', line 174
def version
plist['CFBundleVersion']
end
|