mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Enabled updater, TODO: make updater do less work than installer
This commit is contained in:
@@ -26,6 +26,16 @@ class W3DHub
|
||||
@tasks.push(installer)
|
||||
end
|
||||
|
||||
def update(app_id, channel)
|
||||
puts "Update Request: #{app_id}-#{channel}"
|
||||
|
||||
return false unless installed?(app_id, channel)
|
||||
|
||||
updater = Updater.new(app_id, channel)
|
||||
|
||||
@tasks.push(updater)
|
||||
end
|
||||
|
||||
def import(app_id, channel, path)
|
||||
puts "Import Request: #{app_id}-#{channel} -> #{path}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user