-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Error 'no space left on device' is shown if code signing is not disabled. #3301
Comments
Hitting a similar issue – were you able to overcome this? |
Hey @iaaflaafc and @tommoor Were you able to overcome this? If so, how? |
I may have some more information here. I was facing the same error 'no space left on device', and it was not related to code signing. After some digging I found that it is actually related to no space being left on the dmg. The dmg is built in stages. First it is built from the out folder containing the app, then it is resized down, taking into account any extra space needed for customization like dmg icons, background and the like. The code trying to find the correct final size is here: https://github.com/electron-userland/electron-builder/blob/master/packages/dmg-builder/src/dmg.ts#L39 It ends up calling this: https://github.com/electron-userland/electron-builder/blob/master/packages/dmg-builder/src/dmg.ts#L248 which tries to calculate extra space needed for storing the images plus some 32k (I'm assuming) of extra space for metadata etc. Some strange effect is happening there, such that if app content size falls within certain boundaries, the above calculation falls short. You can decrease or increase your content size (artificially add or remove 10MB+ content) and it will work again. I don't know the correct way to calculate the resize value. For now I'm assuming there's some strange interaction between block sizes, size-on-disk, the units hdutil understands, KiloByte vs. KibiByte etc. As a temporary hack, if I increase the default extra space of 32 x 1024 (assuming that's 32k) to something much larger like 10 x 1024 x 1024 (assuming that's 10MB) my image builds fine, although the dmg grows in size somewhat unnecessarily. |
Hi Slawo, Did you find permanent fix for this issue? Either we can submit PR to increase size in hdiutil, and avoid this error? At is seams that memory computation is not correct in some cases. |
Hey @vladotesanovic, Unfortunately, I don't have a proper fix. For now I live with a workaround. I add or remove an all-white background .tif file if the build fails. |
Well, for me icon and background is null, and according to code, if it is null, than it is ignored. I was thinking to play with hdiutil arguments for beginning, and if that fail than to change this |
@develar Why has this issue been closed? The bug is still there... and I'm not able to publish any updates anymore... |
I can confirm, that this workaround fixes the issue |
I am trying to build for mac zip.
If I run the command
CSC_IDENTITY_AUTO_DISCOVERY=false yarn electron-builder -m
, the command executes successfully.If I run the command
yarn electron-builder -m
, the command throws error -open /Volumes/AppName 0.0.0/.VolumeIcon.icns: no space left on device
Below is the full output for the 2 commands-
I have replaced some path names for privacy concerns.
Below is the relevant part of
package.json
-The text was updated successfully, but these errors were encountered: