From 1f37be3604cabb89a737c89fa70bb1bb424d1040 Mon Sep 17 00:00:00 2001 From: Cyberarm Date: Sun, 28 Jun 2020 07:59:46 -0500 Subject: [PATCH] Added Rakefile, added Windows packaging config --- .gitignore | 1 + Gemfile | 8 +++++++- Rakefile | 19 +++++++++++++++++++ timecrafters_configuration_tool.rb | 4 +++- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100755 Rakefile diff --git a/.gitignore b/.gitignore index 8b57b93..a3f73ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +pkg/* data/**/*.json data/settings.json data/simulator.rb \ No newline at end of file diff --git a/Gemfile b/Gemfile index 9bd9f6d..49a187a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,9 @@ source "https://rubygems.org" -gem "cyberarm_engine" \ No newline at end of file +gem "cyberarm_engine" +gem "ffi" +gem "clipboard" + +group :packaging do + gem "ocra" +end \ No newline at end of file diff --git a/Rakefile b/Rakefile new file mode 100755 index 0000000..005b181 --- /dev/null +++ b/Rakefile @@ -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 diff --git a/timecrafters_configuration_tool.rb b/timecrafters_configuration_tool.rb index 790d08e..f37994e 100644 --- a/timecrafters_configuration_tool.rb +++ b/timecrafters_configuration_tool.rb @@ -35,4 +35,6 @@ require_relative "lib/tacnet/server" # 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 \ No newline at end of file +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 \ No newline at end of file