templates/app/Rakefile in gamebox-0.4.1 vs templates/app/Rakefile in gamebox-0.5.0
- old
+ new
@@ -12,5 +12,56 @@
%w(Maps maps/),
%w(Unit\ tests specs/),
%w(Libraries lib/),
].collect { |name, dir| [ name, "#{APP_ROOT}/#{dir}" ] }.select { |name, dir| File.directory?(dir) }
+
+# more info on releasy here: https://github.com/Spooner/releasy
+Releasy::Builders::OsxApp::SOURCE_GEMS_TO_REMOVE.concat %w(chingu chingu.rb chipmunk.bundle chipmunk.rb)
+
+Releasy::Project.new do
+ name Gamebox.configuration.game_name.gsub(' ','')
+ version "0.0.1"
+
+ executable "src/app.rb"
+ files ["config/**/*.*", "src/**/*.rb", "data/**/*.*"]
+ exclude_encoding # Applications that don't use advanced encoding (e.g. Japanese characters) can save build size with this.
+
+ # Create a variety of releases, for all platforms.
+ add_build :osx_app do
+ url "io.gamebox.my_game"
+ gosu_downloads = ENV['GOSU_DOWNLOADS'] || "#{ENV['HOME']}/tmp"
+ wrapper "#{gosu_downloads}/gosu-mac-wrapper-0.7.47.tar.gz"
+ add_package :tar_gz
+ end
+
+ add_build :source do
+ add_package :tar_gz
+ end
+
+ # If building on a Windows machine, :windows_folder and/or :windows_installer are recommended.
+ add_build :windows_folder do
+ icon "data/icons/seedlife.ico"
+ executable_type :windows # Assuming you don't want it to run with a console window.
+ add_package :exe # Windows self-extracting archive.
+ end
+
+ # add_build :windows_installer do
+ # icon "media/icon.ico"
+ # start_menu_group "Spooner Games"
+ # readme "README.html" # User asked if they want to view readme after install.
+ # license "LICENSE.txt" # User asked to read this and confirm before installing.
+ # executable_type :windows # Assuming you don't want it to run with a console window.
+ # add_package :zip
+ # end
+
+ # # If unable to build on a Windows machine, :windows_wrapped is the only choice.
+ # add_build :windows_wrapped do
+ # wrapper "wrappers/ruby-1.9.3-p0-i386-mingw32.7z" # Assuming this is where you downloaded this file.
+ # executable_type :windows # Assuming you don't want it to run with a console window.
+ # exclude_tcl_tk # Assuming application doesn't use Tcl/Tk, then it can save a lot of size by using this.
+ # add_package :zip
+ # end
+
+ # add_deploy :local # Only deploy locally.
+end
+