Open mhsmith opened 1 year ago
Definitely agreed that some optimisation is called for here.
Some notes for potential implementors:
briefcase run -u
- while we don't need to resign the app_packages, the signing of the app bundle as a whole is needed, because the app content has changed. run
has a binary that can run locally. However, when invoking package
, that signing during build
is redundant. The good news is that the kwargs
passed to build_app
will have identity
and adhoc_sign
provided as arguments if it is being invoked transitively from a package command; this could be used as a signal to ignore the signing pass on build.
Adhoc signing of every .so or .dylib in the app takes at least 7 seconds on my machine for a minimal app, and 15 seconds for this app. So it's annoying that it happens every time I run
briefcase run -u
, and unnecessary because that command isn't capable of changing any of the signed files.Similarly,
briefcase package -u
will adhoc sign the app, and then properly sign it all over again.