Added pack.rb/unpack.rb utilities

This commit is contained in:
2014-04-23 23:10:51 -07:00
parent bfba3e38f1
commit 7b6431df28
3 changed files with 19 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ Dependencies
* Microsoft Windows (sorry - RPG Maker is windows only; if you want to run Game.exe or RPG Maker, you need Windows.) * Microsoft Windows (sorry - RPG Maker is windows only; if you want to run Game.exe or RPG Maker, you need Windows.)
* gnu make (http://gnuwin32.sourceforge.net/downlinks/make.php .. or use what's in mingw/cygwin) * gnu make (http://gnuwin32.sourceforge.net/downlinks/make.php .. or use what's in mingw/cygwin)
* ruby ( http://www.ruby-lang.org - pik works well for windows) * ruby ( http://www.ruby-lang.org - pik works well for windows)
* rvpacker (https://github.com/akesterson/rvpacker - gem install rvpacker) * rvpacker (https://rubygems.org/gems/rvpacker - gem install rvpacker)
* RPG Maker VX Ace (http://www.rpgmakerweb.com/products/programs/rpg-maker-vx-ace) * RPG Maker VX Ace (http://www.rpgmakerweb.com/products/programs/rpg-maker-vx-ace)
License License
@@ -30,17 +30,9 @@ For any project built off this skeleton, collaborating is easy:
* Download and install the version control client that your developer tells you to * Download and install the version control client that your developer tells you to
* Check out the project from the URL they give you * Check out the project from the URL they give you
* Repack the project * Unpack the project by running 'unpack.rb' (doubleclick it in Explorer)
* If you are on Linux or OS X:
* Double-click the 'unpack.sh' script in Finder, Gnome file manager, or run it in a terminal
* If you are on Windows:
* Double-click the 'unpack.bat' script in Explorer
* Open the game project in RPG Maker and make whatever changes you want * Open the game project in RPG Maker and make whatever changes you want
* Unpack the project before committing it up for everyone else * Repack the project by running 'pack.rb' (doubleclick it in Explorer)
* If you are on Linux or OS X:
* Double-click the 'pack.sh' script in Finder, Gnome file manager, or run in a terminal
* If you are on Windows:
* Double-click the 'pack.bat' script in Explorer
* Commit the project into version control * Commit the project into version control
Now your programmers and project managers will thank you. Now your programmers and project managers will thank you.

8
pack.rb Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
output = %x[make pack]
if $? != 0
puts output
puts "Something went wrong - please fix it (enter to continue)"
gets
end

8
unpack.rb Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env ruby
output = %x[make unpack]
if $? != 0
puts output
puts "Something went wrong - please fix it (enter to continue)"
gets
end