[squeak-dev] [ANN] Phobos for Squeak

Pavel Krivanek squeak1 at continentalbrno.cz
Mon Oct 15 17:45:15 UTC 2012


Hi, I use this scripts:

===========
without.sh
===========
#!/bin/bash

which xulrunner >/dev/null 2>&1 || {
  [ $(uname) == 'Darwin' ] &&
PATH=/Library/Frameworks/XUL.framework/Versions/Current/:${PATH}
}
xulrunner -app $(cd $(dirname $0); pwd)/application.ini $@

===========
withconsole.sh
===========
#!/bin/bash

$(dirname $0)/without.sh -jsconsole


-- Pavel

On Mon, Oct 15, 2012 at 6:56 PM, Bob Arning <arning315 at comcast.net> wrote:
> Pavel,
>
> Looks interesting, but lacking enough unix geekdom, I'm a bit stymied by
>
> run XULRunner with -jsconsole argument. It shows the JavaScript console
>
> I tried stuff like this:
>
> robert-arnings-computer:PhobosDemo.app bob$
> Contents/Frameworks/XUL.framework/Versions/16.0/xulrunner --app
> /Contents/Resources/application.ini
> Error: couldn't parse application.ini.
>
> and can't seem to find the winning combination. Can you help?
>
> Thanks,
> Bob
>
>
> On 10/13/12 4:29 PM, Pavel Krivanek wrote:
>
> Hi,
>
> I created a port of Phobos (framework for creation of native user
> interface using XULRunner) to Squeak too.
>
> http://code.google.com/p/phobos-framework/
>
> It uses WebClient instead of Zinc. To load Phobos evaluate:
>
> (Installer repository: 'http://www.squeaksource.com/WebClient')
>   addPackage: 'WebClient-Core';
>   install.
>
> (Installer repository: 'http://www.squeaksource.com/Seaside30')
>   addPackage: 'Grease-Core';
>   addPackage: 'Grease-Pharo-Core';
>   addPackage: 'Seaside-Pharo-Continuation';
>   install.
>
> (Installer repository: 'http://www.squeaksource.com/SCouchDB')
>   addPackage: 'JSON';
>   install.
>
> (Installer repository:
> 'http://smalltalkhub.com/mc/PavelKrivanek/Phobos/main')
>   addPackage: 'Phobos-Core';
>   addPackage: 'Phobos-XUL';
>   addPackage: 'Phobos-HTML';
>   addPackage: 'Phobos-Demo';
>   addPackage: 'Phobos-WebClient';
>   install.
>
> To start the server evaluate:
>
> app := PhobosDemo new.
> app startOnWebClient.
>
> ATTENTION: You will need to modify start.st script in the bundle.
>
> There is one main ugly difference from Pharo, If an error on Smalltalk
> side is raised, no debugger is opened. You will get the information
> about an error only on the JavaScript side in JSConsole:
>
> "
> Error: The connection to ws://localhost:46528/newSession has
> terminated unexpectedly. Some data may have been transferred.
> Source File: chrome://myapp/content/main.js
> Line: 132
> "
>
> Cheers,
> -- Pavel
>
>
>
>
>
>


More information about the Squeak-dev mailing list