Added Rakefile, added Windows packaging config

This commit is contained in:
2020-06-28 07:59:46 -05:00
parent f85426780b
commit 1f37be3604
4 changed files with 30 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
pkg/*
data/**/*.json data/**/*.json
data/settings.json data/settings.json
data/simulator.rb data/simulator.rb

View File

@@ -1,3 +1,9 @@
source "https://rubygems.org" source "https://rubygems.org"
gem "cyberarm_engine" gem "cyberarm_engine"
gem "ffi"
gem "clipboard"
group :packaging do
gem "ocra"
end

19
Rakefile Executable file
View File

@@ -0,0 +1,19 @@
require "releasy"
require 'bundler/setup' # Releasy requires that your application uses bundler.
require_relative "lib/version"
Releasy::Project.new do
name TAC::NAME
version TAC::VERSION
executable "timecrafters_configuration_tool.rb"
files ["lib/**/*.*", "media/**/*.*", "data"]
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/icon.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

@@ -35,4 +35,6 @@ require_relative "lib/tacnet/server"
# Thread.abort_on_exception = true # Thread.abort_on_exception = true
TAC::Window.new(width: (Gosu.screen_width * 0.8).round, height: (Gosu.screen_height * 0.8).round, resizable: true).show if not defined?(Ocra)
TAC::Window.new(width: (Gosu.screen_width * 0.8).round, height: (Gosu.screen_height * 0.8).round, resizable: true).show
end