Recent

Author Topic: From Windows to Mac  (Read 5988 times)

clemmi

  • Jr. Member
  • **
  • Posts: 54
From Windows to Mac
« 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.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: From Windows to Mac
« Reply #1 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.

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: From Windows to Mac
« Reply #2 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.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

clemmi

  • Jr. Member
  • **
  • Posts: 54
Re: From Windows to Mac
« Reply #3 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