mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 01:02:34 +00:00
Interim Apex can now be installed and launched (on Windows)
This commit is contained in:
10
lib/cache.rb
10
lib/cache.rb
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user