Interim Apex can now be installed and launched (on Windows)

This commit is contained in:
2021-11-19 11:09:14 -06:00
parent 2ce616ffbe
commit ec81959947
9 changed files with 173 additions and 66 deletions

View File

@@ -15,4 +15,24 @@ class W3DHub
def self.format_size_number(i)
format("%0.2f", i)
end
def self.windows?
RbConfig::CONFIG["host_os"] =~ /(mingw|mswin|windows)/i
end
def self.mac?
RbConfig::CONFIG["host_os"] =~ /(darwin|mac os)/i
end
def self.linux?
RbConfig::CONFIG["host_os"] =~ /(linux|bsd|aix|solaris)/i
end
def self.unix?
linux? || mac?
end
def self.home_directory
File.expand_path("~")
end
end