On Tue, Aug 14, 2007 at 11:39:23PM -0500, Mark Silverberg wrote:
> My question is.. after I build my .rb file(s) that use Shoe.app..
> what's the best way to package it up and send to a friend? One of my
> ideas includes connecting to a SQL server however the client shouldnt
> have easy access to it those logins. The rest of the code can be open
> source.
Three ways:
* Build a .shy archive (new as of last night). This contains your
complete application in a single file. Here's a little script to
create an archive (run it in your checked-out `shoes` directory.)
$: << "./lib"
require 'shoes'
s = Shy.new
s.name = 'application-name'
s.creator = 'Mark Silverberg'
s.version = '1.0.0'
s.launch = 'app/main.rb' # the script to load
Shy.c('myapp.shy', s, 'myapp') # zips the `myapp` directory
Then to run the shy, use: shoes myapp.shy
So, this is the lightest way to deliver an app to someone who has
Shoes or the next release of Hackety Hack.
* Compile a custom build of Shoes.
$ rake APPNAME=myapp
#=> outputs an app named `myapp` in dist
This is still kind of clunky right now. Eventually, I want to be
able to output all three distros (and a source distro) without
needing a compiler.
* And, lastly, of course, just handing out the .rb file, if it works
alone.
As far as protecting your passwords, I'm not really sure how you'd
make that work here. If the app can decrypt it, then likely the
user will be able to as well.
_why