Commit 23d53dc
authored
🐛 Increase number of tries when unmounting (#214)
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
}1 parent 35d1271 commit 23d53dc
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments