mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Updated gemfile, added comments to repairer, updater, and uninstaller task stubs
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
class W3DHub
|
||||
class ApplicationManager
|
||||
class Repairer < Task
|
||||
def type
|
||||
:repairer
|
||||
end
|
||||
|
||||
def exec_task
|
||||
# fetch manifests
|
||||
# load manifests
|
||||
# run presence and checksum checks
|
||||
# extract and re/place broken/missing files
|
||||
# if a large number of files are missing from a single package
|
||||
# simply reextract the whole thing
|
||||
# mark application as installed/repaired
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1,6 +1,21 @@
|
||||
class W3DHub
|
||||
class ApplicationManager
|
||||
class Uninstaller < Task
|
||||
def type
|
||||
:uninstaller
|
||||
end
|
||||
|
||||
def exec_task
|
||||
# TODO: cherrypick or nuke installation folder
|
||||
# A:
|
||||
# fetch manifests
|
||||
# load manifests
|
||||
# build list of files
|
||||
# delete list of files
|
||||
# B:
|
||||
# Nuke installation folder
|
||||
# mark application as uninstalled
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
19
lib/application_manager/tasks/updater.rb
Normal file
19
lib/application_manager/tasks/updater.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
class W3DHub
|
||||
class ApplicationManager
|
||||
class Updater < Task
|
||||
def type
|
||||
:updater
|
||||
end
|
||||
|
||||
def exec_task
|
||||
# Fetch manifests
|
||||
# Load manifests
|
||||
# build file list
|
||||
# find new packages
|
||||
# unpack new packages
|
||||
# TODO: detect patch files and handle them
|
||||
# update installed game version
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user