Create a .exe application in Pharo 2.0

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Create a .exe application in Pharo 2.0

Paolo Piccinelli
Hi Everybody,

i'd like to know what can i have to do to create a .exe application/desktop application, after creating a Package with all the working classes in Pharo 2.0. I created the Minesweeper game, and i'm tired to write into the workspace MSGame new openInWorld. How can i automatize that?
Thanks for the help guys!

W Pharo!
Paolo

Reply | Threaded
Open this post in threaded view
|

Re: Create a .exe application in Pharo 2.0

Benjamin Van Ryseghem (Pharo)
What you can do here, is using the preferences to automatically start your app when a pharo image is open :)
Then your Pharo.exe+your image will turn into a Minesweeper :)

Ben

On 31 Oct 2013, at 15:01, Paolo Piccinelli <[hidden email]> wrote:

Hi Everybody,

i'd like to know what can i have to do to create a .exe application/desktop application, after creating a Package with all the working classes in Pharo 2.0. I created the Minesweeper game, and i'm tired to write into the workspace MSGame new openInWorld. How can i automatize that?
Thanks for the help guys!

W Pharo!
Paolo

Reply | Threaded
Open this post in threaded view
|

Re: Create a .exe application in Pharo 2.0

Ben Coman
Will preferences work if the application is distributed to other machines.  I guess it might work if the preferences file sits next to the image file, but not automatically if it was installed on another machine via a ConfigurationOfXXX.

The other alternative may be to plug into the #startup mechanism.  Take a look at the class PhLDeploymentScript in PharoLauncher [1].
Also you might find some interesting tips to carry over from [2] - but be aware that is written for old version Squeak 3.9.

[1] https://ci.inria.fr/pharo-contribution/job/PharoLauncherFinalUserImage/
[2] http://squeak.preeminent.org/tut2007/html/205.html

cheer -ben

Benjamin wrote:
What you can do here, is using the preferences to automatically start your app when a pharo image is open :)
Then your Pharo.exe+your image will turn into a Minesweeper :)

Ben

On 31 Oct 2013, at 15:01, Paolo Piccinelli [hidden email] wrote:

  
Hi Everybody,

i'd like to know what can i have to do to create a .exe application/desktop application, after creating a Package with all the working classes in Pharo 2.0. I created the Minesweeper game, and i'm tired to write into the workspace MSGame new openInWorld. How can i automatize that?
Thanks for the help guys!

W Pharo!
Paolo
    


  

Reply | Threaded
Open this post in threaded view
|

Re: Create a .exe application in Pharo 2.0

Stéphane Ducasse
In reply to this post by Paolo Piccinelli

On Oct 31, 2013, at 3:01 PM, Paolo Piccinelli <[hidden email]> wrote:

Hi Everybody,

i'd like to know what can i have to do to create a .exe application/desktop application, after creating a Package with all the working classes in Pharo 2.0. I created the Minesweeper game, and i'm tired to write into the workspace MSGame new openInWorld. How can i automatize that?
Thanks for the help guys!

Can we play with this game? what is the license? where it is?
How different it is from the mimesweeper in the games project?

Stef

W Pharo!
Paolo