Recent

Author Topic: Deploying your Mac app bundle in ZIP format  (Read 20536 times)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3538
Re: Deploying your Mac app bundle in ZIP format
« Reply #15 on: April 03, 2012, 08:36:59 am »
It would be nice if someone documented the process of making a DMG step-by-step in our wiki:

http://wiki.lazarus.freepascal.org/Deploying_Your_Application#Mac_OS_X_installers

Shebuka

  • Sr. Member
  • ****
  • Posts: 429
Re: Deploying your Mac app bundle in ZIP format
« Reply #16 on: April 03, 2012, 10:32:14 am »
The dmg compression works pretty well for me,
i have a uncompressed dmg with allocated space of 100Mb and real occupied space by 3 apps of like 70Mb with debug info and 34,6Mb after stripping it, then with (make script)
hdiutil convert "$(WC_DMG)" -quiet -format UDZO -imagekey zlib-level=9 -o "$@"
(where WC_DMG is a dmg uncompressed template and @ is final dmg name with date/version)
i obtain a 14Mb dmg

p.s. this really helped me http://el-tramo.be/guides/fancy-dmg/
« Last Edit: April 03, 2012, 10:55:40 am by Shebuka »

pasquale

  • Sr. Member
  • ****
  • Posts: 271
    • Esposito Software
Re: Deploying your Mac app bundle in ZIP format
« Reply #17 on: April 03, 2012, 12:32:17 pm »

 "strip" comes with the system. No need for MacPorts or fink.  You can simply invoke it from the commandline.


Where is "strip" located exactly in the Lazarus folder?

Can you give me an example about how to invoke it using the Mac Terminal?

Thanks.
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Deploying your Mac app bundle in ZIP format
« Reply #18 on: April 03, 2012, 12:48:44 pm »
Should it be in the Lazarus folder?
Try running in the terminal:
whereis strip
or
which strip
Or you can look for it using the find field, I think top right of your Desktop; don't know if you need to open Finder; alternatively:
mdfind strip

in the terminal
Then
man strip
and/or
strip --help
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

pasquale

  • Sr. Member
  • ****
  • Posts: 271
    • Esposito Software
Re: Deploying your Mac app bundle in ZIP format
« Reply #19 on: April 03, 2012, 09:39:26 pm »
Thanks. The "which strip" command worked and allowed me to find it.

By using the terminal, I was able to reduce my app size dramatically using strip. I didn't have to install anything else on my Mac.

Thank you for your help.
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

pasquale

  • Sr. Member
  • ****
  • Posts: 271
    • Esposito Software
Re: Deploying your Mac app bundle in ZIP format
« Reply #20 on: April 04, 2012, 07:37:28 am »

The same strip in Windows also exists in Mac, which is under /usr/bin/ directory.
But I am not sure if it comes with mac port or not. You have to install mac port first then try something like that.

Install Mac port first.


Just for the record, strip does not come with Mac port. As you said correctly, it is located under the /usr/bin/ directory and it's ready for use.
Apple loves breaking backward compatibility to make money. If you want to be sure that your apps will never stop working, use Windows and trash macOS!

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Deploying your Mac app bundle in ZIP format
« Reply #21 on: April 04, 2012, 07:58:11 am »
It would be nice if someone documented the process of making a DMG step-by-step in our wiki:

http://wiki.lazarus.freepascal.org/Deploying_Your_Application#Mac_OS_X_installers

;)
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

 

TinyPortal © 2005-2018