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

fix(mac): make tempFile unique for each call to getProvisioningProfileAsync #4269

Merged
merged 1 commit into from
Oct 22, 2019

Conversation

UzEE
Copy link
Contributor

@UzEE UzEE commented Sep 26, 2019

When building multiple targets on macOS, getProvisioningProfileAsync (in electron-osx-sign) would create a temporary plist file that was shared between targets. However this method also unlinked the file it created causing the other target, which was running in parallel and still needed the file to crash.

This fix makes the temporary file name unique for each call to getProvisioningProfileAsync by introducing a high-resolution timer as a component of the temporary file name hash, so when the method unlinks the file, it doesn't cause other targets building in parallel to fail as they will have their own copy of the file.

fixes #4204

…eAsync

When building multiple targets on macOS, getProvisioningProfileAsync would create a temporary
plist file that was shared between targets. However this method also unlinked the file it created
causing the other target, which was running in parallel to crash. This fix makes the temporary
file name unique for each call to getProvisioningProfileAsync so when the method unlinks the
file, it doesn't cause other targets building in parallel to fail.

fixes electron-userland#4204
@idoodler
Copy link
Contributor

@UzEE "Some checks were not successful"

@develar develar merged commit f858f9e into electron-userland:master Oct 22, 2019
@develar
Copy link
Member

develar commented Oct 22, 2019

Thanks!

@idoodler
Copy link
Contributor

When is the next NPM publish scheduled that includes this fix?

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

Successfully merging this pull request may close these issues.

Mac App Store Signing Fails With ENOENT: no such file or directory, unlink
3 participants