Enabled updater, TODO: make updater do less work than installer

This commit is contained in:
2021-12-06 10:34:06 -06:00
parent a6c194b762
commit 4f675644ee
4 changed files with 13 additions and 20 deletions

View File

@@ -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}"