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

Update hdiutil.js #214

Merged
merged 1 commit into from
Nov 1, 2022
Merged

Update hdiutil.js #214

merged 1 commit into from
Nov 1, 2022

Conversation

ychoo
Copy link
Contributor

@ychoo ychoo commented Sep 28, 2022

When creating a DMG with electron-installer-dmg and electron-builder, I encountered the following error due to timeout waiting for volume detach to be successful. By increasing the attempts from 5 to 8, the build is successful. The build is done using macOS Monterey (12.6) with Apple M1 Max. Maybe 10 is a better number for older Mac?

at makeError (/.../node_modules/execa/index.js:174:9)
at /.../node_modules/execa/index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {

code: 16,
stdout: '',
stderr: hdiutil: couldn't unmount "disk6" - Resource busy\n,
failed: true,
signal: null,
cmd: 'hdiutil detach /Volumes/MyProjectName,
timedOut: false,
killed: false
}

When creating a DMG with electron-installer-dmg and electron-builder, I encountered the following error due to timeout waiting for volume detach to be successful. By increasing the attempts from 5 to 8, the build is successful. The build is done using macOS Monterey (12.6) with Apple M1 Max. Maybe 10 is a better number for older Mac?

    at makeError (/.../node_modules/execa/index.js:174:9)
    at /.../node_modules/execa/index.js:278:16
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: 16,
  stdout: '',
  stderr: `hdiutil: couldn't unmount "disk6" - Resource busy\n`,
  failed: true,
  signal: null,
  cmd: 'hdiutil detach /Volumes/MyProjectName,
  timedOut: false,
  killed: false
}
Copy link
Owner

@LinusU LinusU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable 👍

@LinusU LinusU merged commit 23d53dc into LinusU:master Nov 1, 2022
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.

None yet

2 participants