Actually its very simple on windows , macos and linux.

You actually distribute the pharo folders as it is. You can rename the
folder to the name of your application.

In windows you can rename the folder and even rename the Pharo.exe to the
name of your application , you can also change the icon, you can name your
image anything you want the pharo binary will open any image it finds
inside its folder , if there are multiple images it will display file
dialog to let the user choose the image it want to load. You can zip the
folder and send it to any of your friends via email or any other way that
suits you.

In macos a mac application is a folder , the mac users dont get exposed to
binary executables , so all they see is that icon folder,  so there is
little reason to remame the binary executable, so all you have to do is
rename the folder and add your own icon.

Bare in mind that if you dont care about the looks you dont even neeed to
rename the folder and the binary in either macos or windows or add your own
icon.

linux is a similar story.

So basically in the question of what you need to do to distribute my code
to people that dont have pharo installed in their system , the answer is
"nothing at all, just copy paste the pharo folder containing your image". I
dont think it can be any simple than that. One of the reasons of using
pharo is how simple it is to distribute pharo applications. Any other
language it get a lot more complex than that.

As Stef said a more flexible way to do it is using Smalltalkhub, CI
servers, git and github and probably many other options. But none of these
options are necessary just to run your code in other pcs. These options
offer you however better ways to manage code and test code in diffirent
platforms.

On Mon, Oct 27, 2014 at 11:40 AM, Hans Schueren <werb...@hans-schueren.de>
wrote:

> Hello programmers ,
>
> i am a beginner pharo.
>
> Now i have a complete , simple smalltalk program READY.
>
> The many functions of Pharo are not important for me at the time.
>
> What i want to do is the following :
>
> 1. starting the whole program in the Pharo environment   ( not only a
> class or method )
>
> 2. saving the image files only for the program in afolder.
>
> 3. storing the program image file on a USB stick.
>
> 4. starting and using the program on another PC.
>
>
>
> Theese questions seems to be simple for professionals.
>
>
> But let me explain the case.
>
>
> The program code in Pharo is included in all the classes and Methods.
>
> There is a package that contains many classes and different methods that
> represents the flow of the smalltalk program.
>
> During the writing i can check the methods and classes by sending a
> question to it and see the results.
>
> I have started a method by :     method   runmethod. or          method
> new  openInWorld.
>
> But what must i type to start the whole program ?         If there are
> many classes ?
>
>
> How can i store the program in a optional image.file ?
>
>
>
> The program is indeed ready programmed.
>
>
> I have already realized that program code in Pharo is included in the
> image.  Not as a file.
>
>
> Are there any online sites or instructions to do that ?
>
>
>
> Regards
>
>
> Hans
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>

Reply via email to