Mac Application Bundle Wizard lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- CCRDude · 2018-11-22 20:20 I've spend the day working on a (stand-alone as a start) wizard to deal with all those steps required to reach an Apple Store compatible installer starting with a simple Darwin binary as created by Lazarus: * Updating permissions * Verifying Info.plist is including essential information for notarizing, and updating it from .lpi * Telling the system to forget other locations * Codesigning app bundle with entitlements and requirements for notarizing * Creating installer package * Codesigning installer package * Starting notarizing installer package It basically wraps a lengthly bash script with added validations. Right now it has an included entitlements file editor (with only Sandbox entitlements implemented so far). An Info.plist editor will be next. Setting the fields or using a predefined defaults.ini for a single project is annoying, but it's getting somewhere it can be useful https://gitlab.com/ccrdude/lazarus-mac-application-wizard ---------------------------------------------------------------------- Hansaplast · 2018-11-22 20:56 I was working on something similar - this is great!  I'll go play with it in the next few days! Excellent! Two questions; 1) Does it remove "icon?" files as well? I had this once cause problems with signing, until I removed the file. I believe you can add such a "icon?" file by pulling up file info in Finder, and pasting a png on the icon. 2) Does it sign additional executables as well? I had issues with the "--deep" option, so for me to sign my application. I need to sign the additional executable first (also on Content/MacOS), and sign the entire .app after that - both without using the "--deep" option (!). I'm not sure if this may be needed for frameworks as well - I haven't used frameworks yet. ---------------------------------------------------------------------- mischi · 2018-11-22 21:34 Very nice. Do you consider to tag version or releases? That would make it easy for me to create a package description for fink, the macOS package manager. Release or tags make a nice versioning than the combination of dates and commit numbers. ---------------------------------------------------------------------- CCRDude · 2018-11-23 09:33 @Hansaplast: 1. I pushed another commit. Now it removes "Icon", and uses xattr -cr to clean any extended attributes. Thanks for pointing me at that issue 2. It uses "deep" indeed. Not sure if App Store allows other projects?  I implemented an option to sign non-deep. @mischi: Right now it's still so much work in progress. I've used it a dozen times, but it needs persistence of the input data at least to be somewhat useful in regular use. Once it's a package, tagging/versioning would indeed be a good idea ---------------------------------------------------------------------- CCRDude · 2018-11-26 16:56 There still was a way to the Store, but with todays last commits, the tool is now able to test / prepare everything required to be able to submit a .pkg using Application Loader without any further errors. The last issues I encountered was finding the correct type of signing identities (those are now indicated in the UI), having icons in all the right sizes (will now be tested to warn if missing), having a product category set, etc. There's still lots of room for improvement of course, but I'm waiting on a reply to my first submission from Apple now (if Application Loader worked as intended, but that's for another topic). ---------------------------------------------------------------------- VTwin · 2018-11-27 00:56 Thanks CCRDude, I look forward to continued development. The requirements that Apple throws at small developers become increasingly onerous. I enjoy coding, but struggling with these issues is not fun. Back in the day Apple loved individual programmers and 'hackers', no more. Unfortunately a lot of my base users, as well as myself, run Macs. Cheers, VTwin ---------------------------------------------------------------------- CCRDude · 2018-12-08 11:35 Workflow now seems confirmed to be working. The testing at Apple tool nearly two weeks, but my app is live now: https://itunes.apple.com/us/app/spybot-identity-monitor/id1444522322 With the steps being confirmed, I guess my next steps will be to convert the stand-alone thing into a Lazarus IDE package. Need to find a good way to make it simple still ---------------------------------------------------------------------- MISV · 2018-12-08 16:41 Just quick question. Please also consider having it call "strip". When compiling in IDE this does not work. Using strip afterwards (no matter what IDE settings) usually cuts off 15% in size (and presumable less/no debug info for other to tinker with)