I fixed the problem with the extra '/'s in the generated pathnames messing up the loading of libraries when a packaged app is run. I've verified that a packaged app based on the template will now work on OSX (Tiger) and Windows (XP). I've uploaded the new template, you can access it through the links in the original blog post.

Andre, as far as your particular problem, I develop on OSX and use the apps on OSX and Windows, not the other way around. I doubt that the fix that I just uploaded will help you, but you can try the newer template, maybe it will make a difference.

I would try further, but I know nothing about Windows programming. If it is still a problem, then it is a problem with the Shoes packager, and is outside my ability to fix. _Why will have to look into that one if it is still broken.

As far as I know, there is no ability to call the packager from the command line.

DZ

On Dec 2, 2008, at 6:29 PM, Andre Paquet wrote:


Sorry I forgot to mention that I'm on Windows. I'm indeed choosing the
shoes_template directory in the packager. Still no launch script in the listbox though. Perhaps I can do the packaging from the command line? Something like

   shoes --package folder shy|win32|osx|linux launchscript

Is this possible? I didn't find any info on the subject.

Packaging is an important thing for me. I'm in the search of the best
portable-lightweight-easy-to-distribute solution and shoes seems to fit my
needs for little apps that I'd like to develop and share.

Great work on your part so far. It's the little push that I needed to actually
start coding and get out of my laziness.

AP

Selon Daniel Zepeda <[EMAIL PROTECTED]>:

No, I don't think you are missing anything, it works for me on OSX
(Tiger) with Shoes r1091, I get bin/app_name.rb as the default choice
among many. What platform are you running on? I assume that you are
choosing the 'shoes_template' directory in the packager?

Also, I'll admit that I didn't try packaging up the template. When I
did, I noticed that when an extra '/' is included in any pathname to
be require'd some of the requires will fail. It works fine when I
'open -a Shoes bin/app_name.rb' but will fail when the template is
packaged.

It's a minor thing that I will fix this evening and post a fixed
version.

DZ

On Dec 2, 2008, at 10:08 AM, Andre Paquet wrote:

Thanks indeed, it's a great start.

On a related topic, I tried to package the sample app, but the
launch script
listbox doesn't seem to work when selecting a folder to be
packaged. It doesn't
contain anything. Is it broken in the r1091 build? Or is there
something I'm
missing?

Thanks,

AP

 peter retief <[EMAIL PROTECTED]>:

Thanks


2008/11/29 Daniel Zepeda <[EMAIL PROTECTED]>:
Hi Folks,

I've blogged about a little Shoes template that I'd like to share
with
others.

From the blog:

I've been using Shoes for the GUI portions of some small side
projects I've
been writing. In the process I've written a small template/
framework for
starting off new Shoes projects that might be of help to others,
so I'd
like
to present it here.

Features

   * Support for ActiveRecord using SQLite3, including -
         o Automatic creation of databases in an automatically
created data
directory (auto-database creation courtesy SQLite3)
         o Automatic per-environment migrations
         o Automatic per-environment loading of fixtures on empty
databases
* A "Tab Bar" which gives the ability to create an MDI-like Shoes
application.
   * Automatic loading of classes placed in the 'lib' and 'lib/
shoes'
directory.
   * Automatic loading of libraries in the '/vendor' directory
   * Automatic naming of application based on the filename found
in the
'/bin' directory
   * Automatic generation of a variable representing the
application root
directory, accessible through the 'Environment' module
* Automatic creation of an application data directory, accessible
through
the 'Environment' module
   * A console script to allow you to play with your (non-Shoes)
classes
interactively
   * Support for RSpec testing of non-Shoes classes
* Rake tasks for running Shoes, RSpec examples and resetting the
database.

Come check it out and comment at:

http://daniel.zepeda.ws/blog/2008/11/27/putting-your-shoes-on-
faster/

Thanks!

DZ










Reply via email to