Lazarus

Programming => Widgetset => Win32/64 => Topic started by: clemmi on January 30, 2014, 08:23:38 pm

Title: From Windows to Mac
Post by: clemmi on January 30, 2014, 08:23:38 pm
Hi,
I made a GUI application in Windows 7 and made an .exe file which is 21,175KB.
I copied all the files of the project to my MacBook OS X, opened Lazarus in the MacBook and made an .app file.

The .app file in my MacBook says it's 12 KB but when I try to send it to a friend via email it says it can't make it because it's more than 15 Mb in size.
I understand that may be because it included the complete libraries, etc.
Can you refer me again to how to make it a smaller size to email it, if possible?

Or, solve this problem:I had no problem sending the 21 Mb .exe file from my Windows 7 email.
When I copy the .app file to a flash card to transfer from Mac to PC it shows as a 12 KB file (folder with 4 files when I looked at it in Windows).
How do I get the whole 21 Mb copied to my flash card instead of only the 12 KB file?
Thanks.
Title: Re: From Windows to Mac
Post by: Leledumbo on January 31, 2014, 04:19:55 am
Quote
Can you refer me again to how to make it a smaller size to email it, if possible?
FAQ, on the left menu, chapter 1.2.
Title: Re: From Windows to Mac
Post by: BigChimp on January 31, 2014, 11:45:27 am
When I copy the .app file to a flash card to transfer from Mac to PC it shows as a 12 KB file (folder with 4 files when I looked at it in Windows).
How do I get the whole 21 Mb copied to my flash card instead of only the 12 KB file?
Try googling/Apple sites for "copy application bundle to flash card" or similar search terms. In other words, it's more of a general OSX thing than a Lazarus thing.
That said, I think I had good luck with regular cp -r (or whatever the command is on OSX exactly: recursive copy).

Another nifty solution is to create a compressed disk image with your application bundle. You can add a readme and a link to the Applications folder, which is usually how OSX software is distributed.
It all ends up in a .dmg file (a real file, not a directory pretending to be a file) which you can easily copy.
http://wiki.lazarus.freepascal.org/Deploying_Your_Application
and the link it points to.
Title: Re: From Windows to Mac
Post by: clemmi on January 31, 2014, 05:03:00 pm
Thanks for both answers. I'lll try and post the results when/if successful.
-cl
TinyPortal © 2005-2018