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
Gemfile
1
Gemfile
@@ -3,4 +3,5 @@ source "https://rubygems.org"
|
|||||||
gem "cyberarm_engine"
|
gem "cyberarm_engine"
|
||||||
gem "launchy"
|
gem "launchy"
|
||||||
gem "i18n"
|
gem "i18n"
|
||||||
|
gem "rexml"
|
||||||
# gem "async-websocket"
|
# gem "async-websocket"
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ GEM
|
|||||||
addressable (2.8.0)
|
addressable (2.8.0)
|
||||||
public_suffix (>= 2.0.2, < 5.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
clipboard (1.3.6)
|
clipboard (1.3.6)
|
||||||
|
concurrent-ruby (1.1.9)
|
||||||
cyberarm_engine (0.19.1)
|
cyberarm_engine (0.19.1)
|
||||||
clipboard (~> 1.3.5)
|
clipboard (~> 1.3.5)
|
||||||
excon (~> 0.78.0)
|
excon (~> 0.78.0)
|
||||||
@@ -12,9 +13,12 @@ GEM
|
|||||||
excon (0.78.1)
|
excon (0.78.1)
|
||||||
gosu (1.2.0)
|
gosu (1.2.0)
|
||||||
gosu_more_drawables (0.3.1)
|
gosu_more_drawables (0.3.1)
|
||||||
|
i18n (1.8.11)
|
||||||
|
concurrent-ruby (~> 1.0)
|
||||||
launchy (2.5.0)
|
launchy (2.5.0)
|
||||||
addressable (~> 2.7)
|
addressable (~> 2.7)
|
||||||
public_suffix (4.0.6)
|
public_suffix (4.0.6)
|
||||||
|
rexml (3.2.5)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
x64-mingw32
|
x64-mingw32
|
||||||
@@ -22,7 +26,9 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
cyberarm_engine
|
cyberarm_engine
|
||||||
|
i18n
|
||||||
launchy
|
launchy
|
||||||
|
rexml
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.2.28
|
2.2.28
|
||||||
|
|||||||
@@ -1,6 +1,19 @@
|
|||||||
class W3DHub
|
class W3DHub
|
||||||
class ApplicationManager
|
class ApplicationManager
|
||||||
class Repairer < Task
|
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
|
end
|
||||||
end
|
end
|
||||||
@@ -1,6 +1,21 @@
|
|||||||
class W3DHub
|
class W3DHub
|
||||||
class ApplicationManager
|
class ApplicationManager
|
||||||
class Uninstaller < Task
|
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
|
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
|
||||||
@@ -12,7 +12,6 @@ require "rexml"
|
|||||||
|
|
||||||
require "i18n"
|
require "i18n"
|
||||||
require "launchy"
|
require "launchy"
|
||||||
require "zip"
|
|
||||||
|
|
||||||
I18n.load_path << Dir[File.expand_path("locales") + "/*.yml"]
|
I18n.load_path << Dir[File.expand_path("locales") + "/*.yml"]
|
||||||
I18n.default_locale = :en
|
I18n.default_locale = :en
|
||||||
|
|||||||
Reference in New Issue
Block a user