Hi, 

not an easy task...but doable :)

On Mar 14, 2013, at 8:52 AM, MartinW <wm@fastmail.fm> wrote:

I want to deploy a Pharo 2.0 Desktop application to a dozen of people using
Windows and MacOS computers. A couple of questions arise:

- How to properly start up and shut down my application when the Pharo image
starts and shuts down?

using startUp method as described in earlier message. You can also prepare your image previously by fixing a morph that occupies all the image size. 


- Can i give the Pharo window a custom size and make it non-resizable?

no

- How to hide development tools, world menu, global keyboard shortcuts,
etc.?

you can use keychain (world menu/system/switch user) to create an user without permissions, then, in combination with the morph on top of the world, you are actually closing the image :)


- How to make a nice One-Click-Application, that preferably should have the
name and icon of the application and not be called Pharo (not because i do
not love Pharo, but because people won't understand :)

rename the app works, but you still have the icon problem... which is trivial in mac (you just edit the info.plist file), but for windows... not so :)
what you need to do is to build your own vm changing the icon... and that was a hard task some time ago, but now is really easy: fork at gitorious (https://gitorious.org/cogvm/blessed) and follow the HOWTOBUILD file. 
For your needs, you need to subclass PharoWindowsConfig and PharoOSXConfig to change the icon and the name... then you can build it easily. 


- How to automate all the above tasks, so i can easily build a new
One-Click-Application again and again.

you can use a jenkins, and if you do not want a CI process, you can use https://gitorious.org/pharo-build/pharo-build/blobs/master/build-oneclick.sh and adapt it to your needs. 


- What do i state as system requirements? "You need at least Windows XYZ or
MacOS 10.X to run this application"

you could check that using NB-FFI and calling some system functions (no idea which ones, thought)

Esteban


Martin.



--
View this message in context: http://forum.world.st/How-to-deploy-a-Pharo-2-0-Desktop-application-tp4676695.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.