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

@@ -27,8 +27,8 @@ class W3DHub
end
end
def self.create_directories(path)
target_directory = File.dirname(path)
def self.create_directories(path, is_directory = false)
target_directory = is_directory ? path : File.dirname(path)
FileUtils.mkdir_p(target_directory) unless Dir.exist?(target_directory)
end
@@ -39,6 +39,12 @@ class W3DHub
"#{package_cache_dir}/#{category}/#{subcategory}/#{version}/#{name}.package"
end
def self.install_path(application, channel)
app_install_dir = $window.settings[:app_install_dir]
"#{app_install_dir}/#{application.category}/#{application.id}/#{channel.id}"
end
# Download a W3D Hub package
def self.fetch_package(package, block)
path = package_path(package.category, package.subcategory, package.name, package.version)