electron / osx-sign

Codesign Electron macOS apps
BSD 2-Clause "Simplified" License
567 stars 96 forks source link

Auto detect provisioning profiles #153

Open jwheare opened 7 years ago

jwheare commented 7 years ago

If no provisioning profile is passed on the command line, the current working directory is searched for a profile. The debug log says:

No `provisioning-profile` passed in arguments, will find in current working directory and in user library..

But is the user library actually searched? It doesn't look like it from the code. Is this possible?

I downloaded and installed a provisioning profile and it gets saved in System Preferences -> Profiles, but I'm not sure where that's stored in the file system. ~/Library/MobileDevice/Provisioning Profiles has iOS profiles, but not sure about macOS.

jwheare commented 7 years ago

OK, I checked the md5sum of all the profiles in ~/Library/MobileDevice/Provisioning Profiles and my macos profile is indeed in there along with all the iOS ones. It's the only one with .provisionprofile extension, as opposed to .mobileprovision.

So would it be possible to check there for auto-detection as the logging suggests?