Added packaging support for windows (windows is still glitchy/crashy when it comes to downloading images)

This commit is contained in:
2022-03-18 18:33:44 -05:00
parent 8ba577d5fd
commit 76ca7e369f
5 changed files with 36 additions and 7 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
pkg/
*.json *.json
data/cache/* data/cache/*
!data/cache/.gitkeep !data/cache/.gitkeep

View File

@@ -10,3 +10,8 @@ gem "async", "~>1.30.1"
gem "async-http" gem "async-http"
gem "async-websocket" gem "async-websocket"
gem "thread-local" gem "thread-local"
# group :windows_packaging do
# gem "rake"
# gem "releasy"
# end

View File

@@ -14,7 +14,7 @@ GEM
protocol-http (~> 0.22.0) protocol-http (~> 0.22.0)
protocol-http1 (~> 0.14.0) protocol-http1 (~> 0.14.0)
protocol-http2 (~> 0.14.0) protocol-http2 (~> 0.14.0)
async-io (1.32.2) async-io (1.33.0)
async async
async-pool (0.3.9) async-pool (0.3.9)
async (>= 1.25) async (>= 1.25)
@@ -26,21 +26,21 @@ GEM
concurrent-ruby (1.1.9) concurrent-ruby (1.1.9)
console (1.14.0) console (1.14.0)
fiber-local fiber-local
cyberarm_engine (0.19.1) cyberarm_engine (0.20.0)
clipboard (~> 1.3.5) clipboard (~> 1.3)
excon (~> 0.78.0) excon (~> 0.88)
gosu (~> 1.1) gosu (~> 1.1)
gosu_more_drawables (~> 0.3) gosu_more_drawables (~> 0.3)
digest-crc (0.6.4) digest-crc (0.6.4)
rake (>= 12.0.0, < 14.0.0) rake (>= 12.0.0, < 14.0.0)
excon (0.78.1) excon (0.92.0)
ffi (1.15.5) ffi (1.15.5)
ffi (1.15.5-x64-mingw-ucrt) ffi (1.15.5-x64-mingw-ucrt)
ffi (1.15.5-x64-mingw32) ffi (1.15.5-x64-mingw32)
fiber-local (1.0.0) fiber-local (1.0.0)
gosu (1.4.1) gosu (1.4.1)
gosu_more_drawables (0.3.1) gosu_more_drawables (0.3.1)
i18n (1.9.1) i18n (1.10.0)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
launchy (2.5.0) launchy (2.5.0)
addressable (~> 2.7) addressable (~> 2.7)

23
Rakefile Normal file
View File

@@ -0,0 +1,23 @@
raise "OCRA doesn't work with Ruby 3.1.0" if RUBY_VERSION == "3.1.0"
# frozen_string_literal: true
require "releasy"
require "bundler/setup" # Releasy requires that your application uses bundler.
require_relative "lib/version"
Releasy::Project.new do
name "W3D Hub Linux Launcher"
version W3DHub::VERSION
executable "w3d_hub_linux_launcher.rb"
files ["lib/**/*.*", "locales/*", "media/**/**", "data/.gitkeep", "data/cache/.gitkeep"]
exclude_encoding # Applications that don't use advanced encoding (e.g. Japanese characters) can save build size with this.
verbose
add_build :windows_folder do
icon "media/icons/app.ico"
executable_type :console # Assuming you don't want it to run with a console window.
add_package :exe # Windows self-extracting archive.
end
end

View File

@@ -87,4 +87,4 @@ Thread.new do
W3DHub::BackgroundWorker.create W3DHub::BackgroundWorker.create
end end
W3DHub::Window.new(width: 980, height: 720, borderless: false).show W3DHub::Window.new(width: 980, height: 720, borderless: false).show unless defined?(Ocra)