We don't need a Player (was Re: New(?) Idea for Standalones)

matthias_livecode_150811 at m-r-d.de matthias_livecode_150811 at m-r-d.de
Tue Apr 13 15:17:50 EDT 2021


Jacque,
and if put the that NotarizerHelperStack into the plugins folder and if you add the below code  to your stack script 
then you can directly code sign and notarize the created macOS standalone right after it was built. ;)

on standaloneSaved pFolderSavedIn

if the cRevStandaloneSettings["MacOSX x86-64"] of this stack is true

then

answer "Do you want to notarize?" with "yes" or "No"

if it ="yes"

then

put pFolderSavedIN & "MacOSX/" & the cRevStandaloneSettings["name"] of this stack & ".app" into tAppBundle

notarizeApp tAppbundle

else

put "Don't notarize"

end if

end if

pass standalonesaved

end standaloneSaved


on notarizeApp tAppbundle
 put "Now notarizing..." &return &tAppBundle after message

 ##path to the notarizer Stack..
## either use an absolute path
--go stack "/Users/matthias/Dropbox/My Livecode/Plugins/mrSignNotarizeHelperV2.livecode"

##or if the helper stack is in the plugins folder
go stack revEnvironmentUserPluginsPath()&"/mrSignNotarizeHelperV2.livecode"

put tAppbundle into fld "appbundle" of cd 1 of stack "mrSignNotarizeHelperV2"

set the label of btn "action" of cd 1 of stack "mrSignNotarizeHelperV2" to "Codesign App, create & codesign DMG, then notarize DMG and staple DMG and App"

set the hilite of btn "debugmode" of cd 1 of stack "mrSignNotarizeHelperV2" to false

send "mouseup" to btn "start" of cd 1 of stack "mrSignNotarizeHelperV2" in 5 seconds

end notarizeApp



-
Matthias Rebbe
Life Is Too Short For Boring Code

> Am 13.04.2021 um 21:03 schrieb J. Landman Gay via use-livecode <use-livecode at lists.runrev.com>:
> 
> On 4/13/21 10:43 AM, Keith Martin via use-livecode wrote:
>>> On 13 Apr 2021, at 11:28, Andre Garzia via use-livecode<use-livecode at lists.runrev.com>  wrote:
>>> 
>>> On the other hand, I think that the SB should create standalones that can actually be deployed, this means that it should be able to handle notarisation on the mac out-of-the-box.
>> Oh boy, THIS!
> 
> +1. But for now I use Matthias' mrSignNotarize helper tool which makes the process much easier. Fill out some info, click a button, and your notarization request is sent to Apple, returned, and stapled to your app.
> 
> It's an extra step which I think LC should incorporate, but for now it saves quite a bit of work. You can find it at this LC lesson, which includes all the manual steps if you want to do it that way, but at the bottom describes his automated tool as well. You can download the stack from the link at the top of the lesson.
> 
> <https://lessons.livecode.com/m/4071/l/1122100-codesigning-and-notarizing-your-lc-standalone-for-distribution-outside-the-mac-appstore>
> 
> I've used it on more than one Mac app and it works. The hardest part is dealing with Apple and of course there's no help for that.
> 
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
> 
> _______________________________________________
> 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