Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default embedded.provisionprofile doesn't used in signApplication #294

Open
mahnunchik opened this issue Sep 26, 2023 · 2 comments
Open

Comments

@mahnunchik
Copy link

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

osx-sign/src/sign.ts

Lines 226 to 228 in 06b32b5

provisioningProfile: opts.provisioningProfile
? await getProvisioningProfile(opts.provisioningProfile, opts.keychain)
: undefined
because validatedOpts.provisioningProfile is undefined as it is in original options.

@mahnunchik
Copy link
Author

electron-osx-sign filled out the options with the correct profile https://github.com/electron/osx-sign/blob/v0.5.0/util-provisioning-profiles.js#L172

@mahnunchik
Copy link
Author

The same for identity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant