Notarize Helper Stack in LC lesson updated

General 2018 General.2018 at outlook.com
Wed Feb 9 16:55:07 EST 2022


Thanks for the tips.

Removed existing standalone’s etc and the .pkg installed nicely to the Applications folder.

Regards Camm

> On 9 Feb 2022, at 00:31, Matthias Rebbe via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> What i forgot.
> 
> You could open console.app and open the install log. There you could see where the app was installed or better said which app was updated/overwritten.
> You should find an entry like this
> 
>    PackageKit: Applications/MyTest.app relocated to ....................... <here you would see the path to where the app was installed>
> 
> Just search for 'relocated' and you should see what happened.
> 
> And please be aware. The app that is updated/overwritten is not determined by the its file name, but by the bundle name (CFBundelName) you've entered in the standalone settings.
> 
> Let's say we have MyNewSampleApp.app and its CFBundleName is for example 'MySampleApp' and we've created an pkg installer from it. And we have another app on the hard disk named 'MyOldSampleApp' which also has the CFBundleName 'MySampleApp'.
> If you then run the pkg installer then chances are high that the file 'MyOldSampleApp' is overwritten instead of  a new file 'MyNewSampleApp.app' is written into Applications folder.
> 
> There are ways to avoid this and tell the package installer to not relocate, but therefore the pkg building command in mrNotarizeHelper stack had to be adjusted. Unfortunately i have currently not enough time to dive into that.
> 
> 
> Regards,
> Matthias
> 
> 
> Von meinem iPhone gesendet
> 
>> Am 09.02.2022 um 00:48 schrieb matthias rebbe via use-livecode <use-livecode at lists.runrev.com>:
>> 
>> Camm,
>> 
>> if i am not completely  wrong then this is a problem that can occur when you try the pkg installer on the same machine on which you've created it.
>> If the installer finds the same .app already somewhere on the hard disk it updates that app and does not install it into Applications folder.
>> 
>> So the best thing is to test the installer on an other machine. Or you could try the following:
>> After successful notarizing delete the app bundle of your standalone (you could make a zip file as backup first) and empty your trash. Make sure that there is no other copy of your .app even older ones. If there are others then delete them also and empty the trash.
>> 
>> Now try to run the .pkg installer. The app should now be installed in Applications folder.
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


More information about the use-livecode mailing list