57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/u3d/ini_modules_parser.rb', line 57
def create_linux_ini(version, size, url)
ini_name = format(INI_NAME, version: version, os: 'linux')
Utils.ensure_dir(default_ini_path)
ini_path = File.expand_path(ini_name, default_ini_path)
return if File.file?(ini_path) && File.size(ini_path) > 0
data = %([Unity]
; -- NOTE --
; This is not an official Unity file
; This has been created by u3d
; ----------
title=Unity
size=#{size}
url=#{url}
)
write_ini_file(ini_path, data)
end
|