LinusU / node-appdmg

💾 Generate your app dmgs
MIT License
1.67k stars 151 forks source link

Update hdiutil.js #214

Closed ychoo closed 1 year ago

ychoo commented 1 year ago

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 }