Compare commits

...

3 Commits

4 changed files with 25 additions and 20 deletions

12
Gemfile
View File

@@ -19,9 +19,9 @@ gem "win32-security", platforms: [:windows]
# use `bundle _x.y.z_ COMMAND` to use this one...
# NOTE: Releasy needs to be installed as a system gem i.e. `rake install`
# NOTE: contents of the `gemhome` folder in the packaged folder need to be moved into the lib/ruby/gems\<RUBY_VERSION> folder
# group :windows_packaging do
# gem "bundler", "~>2.4.3"
# gem "rake"
# gem "ocran"
# gem "releasy"#, path: "../releasy"
# end
# group :windows_packaging do
# gem "bundler", "~>2.4.3"
# gem "rake"
# gem "ocran"
# gem "releasy"#, path: "../releasy"
# end

View File

@@ -2,30 +2,33 @@ GEM
remote: https://rubygems.org/
specs:
base64 (0.2.0)
concurrent-ruby (1.2.3)
concurrent-ruby (1.3.4)
cyberarm_engine (0.24.4)
gosu (~> 1.1)
digest-crc (0.6.5)
rake (>= 12.0.0, < 14.0.0)
event_emitter (0.2.6)
excon (0.109.0)
ffi (1.16.3)
ffi (1.16.3-x64-mingw-ucrt)
excon (1.2.3)
ffi (1.17.1-x64-mingw-ucrt)
ffi (1.17.1-x86_64-linux-gnu)
ffi-win32-extensions (1.0.4)
ffi
gosu (1.4.6)
i18n (1.14.4)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
ircparser (1.0.0)
libui (0.0.15)
rake (13.1.0)
rexml (3.2.6)
rubyzip (2.3.2)
libui (0.1.2-x64-mingw)
mutex_m (0.3.0)
rake (13.2.1)
rexml (3.4.0)
rubyzip (2.4.1)
sdl2-bindings (0.2.3)
ffi (~> 1.15)
websocket (1.2.10)
websocket-client-simple (0.8.0)
websocket (1.2.11)
websocket-client-simple (0.9.0)
base64
event_emitter
mutex_m
websocket
win32-process (0.10.0)
ffi (>= 1.0.0)

View File

@@ -87,7 +87,7 @@ class W3DHub
end
def self.post(url, headers = DEFAULT_HEADERS, body = nil, api = :api)
excon(:post, url, headers, body)
excon(:post, url, headers, body, api)
end
# Method: POST

View File

@@ -12,11 +12,11 @@ class W3DHub
@w3dhub_logo = get_image("#{GAME_ROOT_PATH}/media/icons/app.png")
@tasks = {
# connectivity_check: { started: false, complete: false }, # HEAD connectivity-check.ubuntu.com or HEAD secure.w3dhub.com?
server_list: { started: false, complete: false },
refresh_user_token: { started: false, complete: false },
service_status: { started: false, complete: false },
applications: { started: false, complete: false },
app_icons: { started: false, complete: false },
server_list: { started: false, complete: false }
app_icons: { started: false, complete: false }
}
@offline_mode = false
@@ -189,6 +189,8 @@ class W3DHub
package_details ||= nil
package_details&.each do |package|
next if package.error?
path = Cache.package_path(package.category, package.subcategory, package.name, package.version)
generated_icon_path = "#{GAME_ROOT_PATH}/media/icons/#{package.subcategory}.png"