Re: Bridging Installer Plug in and PostInstall , debugging
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=OuOefuHiCRqhKQkCNY0z35Ofc/At0oSlfbQEjE1oeLg=; b=ltPf1wu1Zq4N16q+7qzcAODx5TOigD9OX/KSmozCVa+tPoITXUv83ZJqzmA8t7Y42y SvDNPIi3WH6h8wm7DIdfo2WrxwNoq2sEa2aZgMczmKI6rPlce2FtlA0YnFBnDpoMH2Ki A4apWlFCZMf5zHdUmhqFzfozeMcIh0e2MvKdNzimbj9eE05Ez2N2tl2ziqNAiKpyKply is+cHk58mYeOSDLLg3zVj9BPUEVzGDhAJOSFAu2Qd0Yj3fS9twJrAruvCkN3uSLyWv9d s4iSQtmj2bRZB7AkwRNSNr5mv51zHUsThfodgxodjrNjzF+MH6ihna5KhDoji6aSDUuT iEZg== You would need to disable SIP. Envoyé de mon iPhone
Le 4 sept. 2018 à 21:41, Colin Ryan <colinr@caveo.ca> a écrit :
Folks,
I've used Packages for a number of years and thing it's a great tool. I currently have a new need that I'm stuck on. I've scoured the resources I could find regarding Installer Plug-Ins and have managed to develop the framework for a basic Installer plug in. But I've come across a challenge, that I believe I know the solution two but would like some input as to best approach.
Fundamentally I need the installer to request a site name, user and password and then do a secure POST to a web site to get an authentication token and then a subsequent file. I have mocked this up with curl in a postinstall script.
a) Originally I was going to merely have the installer plug in request the user input, but I don't see how to pass this data to the postinstall script. My reading leads me to believe I will need to pass this data via temporary file. I see the various shell environment variables available to the postinstall script but am uncertain how to grab a handle on this same temporary directories within the plug-in itself. For example the environment variable for SHARED_INSTALLER_TEMP or INSTALLER_SECURE_TEMP are available to my postinstall, but how are these referred to in the actual Plug-In?
b) Or I can do all the URL stuff in the plug-in, dump the file to a temporary directory and then have my postinstall merely do the final copy and move into the users directories etc, but again I face the same issue as above.
And finally as an aside, is it possible to debug the plug-in somehow. I've tried adding the Installer.app to the debug executable in the XCode scheme but can't seem to get the debugger to stop on my break points so I can investigate the stack, variables etc within the plug-in. If I could see this information a) might be obvious to me and if I do b) I will for certain need to be able to debug it. The Installer.app opens and prompts me to open a file but it won't let me open just the plug-in bundle, it want's me to open the Test .pkg I've made with Packages (with the plug-in installed), and even so no debugging.
Thanks
Colin Ryan
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/dev.iceberg%40gmail.co...
This email sent to dev.iceberg@gmail.com
Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
dev.iceberg