0

Newbie question I am finding it hard to get my head around.

If I wanted to use one of the many tool out their like rsync lsync or s3cmd how can you build these into a program for none computer savvy people to use.

Ie I am comfortable opening terminal and running s3cmd which Is developed in python how would I go about developing this as a dmg file for mac or exe file for windows?

So a user could just install the dmg or exe then they have s3cmd lsync or rsync on their computer.

I can open up eclipse code a simple app in java and then export as a dmg or exe I cannot figure out how you do this for other languages say write a simple piece of code that I cam save as a dmg or exe and that after installed will add a folder to my desktop or something simple like that to get me started?

octern
  • 4,825
  • 21
  • 38
DCHP
  • 1,111
  • 6
  • 29
  • 53
  • A .dmg file is just a disk image, it has nothing to do with applications. Just the same way that a .zip file has nothing to do with applications. – Dietrich Epp Jun 05 '12 at 23:04
  • Hi dietrich so a dmg is just a file that has stored code within it that will run apon install? – DCHP Jun 05 '12 at 23:11
  • No, a .dmg is just like a .zip. It just has files in it, they could be applications or not. It could be code, could be data. – Dietrich Epp Jun 05 '12 at 23:13
  • So when installing a dmg say Dropbox it then writes the application code to your system – DCHP Jun 05 '12 at 23:17
  • That's not how a .dmg file works. A .dmg is really just a fancy archive format, it doesn't install anything it just carries files inside it. – Dietrich Epp Jun 06 '12 at 05:49

1 Answers1

0

If you mean specifically with Python, as I gather from tagging that in your question, it won't simply run the same way as Java will, because there's no equivalent Virtual Machine.

If the user has a Python interpreter on their system, they they can simply run the .py file. If they do not, you can bundle the interpreter and needed libraries into an executable using Py2Exe, cxFreeze, or bbFreeze. For replacing a dmg, App2Exe does something similar.

However. the three commands you listed are not python-related, and rely on functionality that is not necessarily available on Windows or Mac, so it might not be as possible.

Recaiden
  • 58
  • 1
  • 4
  • I've used py2exe a number of times--it's often bulky and a pain to use, but gets the job done. I would _never_, however, use it for production. – jdotjdot Jun 06 '12 at 08:52