Hello,
I've faced with different behavior in @electron/osx-sign v 1.0.5 vs electron-osx-sign v 0.5.0.
If options provisioningProfile and preEmbedProvisioningProfile are not specified (preEmbedProvisioningProfile is true by default) then default embedded.provisionprofile is used here
|
export async function preEmbedProvisioningProfile (opts: ValidatedSignOptions, profile: ProvisioningProfile | null) { |
|
async function embedProvisioningProfile (profile: ProvisioningProfile) { |
|
debugLog('Looking for existing provisioning profile...'); |
|
const embeddedFilePath = path.join(getAppContentsPath(opts), 'embedded.provisionprofile'); |
and successfully embedded here
|
await fs.copy(profile.filePath, embeddedFilePath); |
after executing
https://github.com/electron/osx-sign/blob/06b32b5e8955c95203882ff7ae7f08ae84764a26/src/sign.ts#L381C11-L381C38
But the following sign application action
|
await signApplication(validatedOpts, identityInUse); |
doesn't use it here
|
provisioningProfile: opts.provisioningProfile |
|
? await getProvisioningProfile(opts.provisioningProfile, opts.keychain) |
|
: undefined |
because
validatedOpts.provisioningProfile is undefined as it is in original options.
Hello,
I've faced with different behavior in
@electron/osx-signv 1.0.5 vselectron-osx-signv 0.5.0.If options
provisioningProfileandpreEmbedProvisioningProfileare not specified (preEmbedProvisioningProfileis true by default) then defaultembedded.provisionprofileis used hereosx-sign/src/util-provisioning-profiles.ts
Lines 108 to 111 in 06b32b5
osx-sign/src/util-provisioning-profiles.ts
Line 124 in 06b32b5
But the following sign application action
osx-sign/src/sign.ts
Line 404 in 06b32b5
osx-sign/src/sign.ts
Lines 226 to 228 in 06b32b5
validatedOpts.provisioningProfileis undefined as it is in original options.