electron-builder
electron-builder copied to clipboard
macOS EACCES: permission denied, open '/var/folders/...'
"electron-builder": "^23.3.3",
node v18.15.0
"electron": "^25.9.8",
macOS
During the building process the electron-builder exits with an error 'EACCES: permission denied', so eventually it cannot create a temp folder but there weren't any changes in build scripts and it just started occurring. Logs:
19-Jan-2024 14:01:32 | • packaging platform=darwin arch=arm64 electron=25.9.8 appOutDir=dist/mac-universal--arm64
-- | --
19-Jan-2024 14:01:39 | • packaging platform=darwin arch=universal electron=25.9.8 appOutDir=dist/mac-universal
19-Jan-2024 14:02:04 | ⨯ EACCES: permission denied, open '/var/folders/yk/3b0gcr5j4fv7hf40s2qflfgw0000gp/T/electron-universal-dy58dV/Tmp.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings/build/node_gyp_bins/python3' failedTask=build stackTrace=Error: EACCES: permission denied, open '/var/folders/yk/3b0gcr5j4fv7hf40s2qflfgw0000gp/T/electron-universal-dy58dV/Tmp.app/Contents/Resources/app.asar.unpacked/node_modules/@serialport/bindings/build/node_gyp_bins/python3'
19-Jan-2024 14:02:04 | Failing task since return code of [/bin/sh /User/agent-home/temp/ScriptBuildTask-4296830561218924952.sh] was 1 while expected 0
19-Jan-2024 14:02:04 | Finished task 'build' with result: Failed
Did something change with your OS/node versions or CI runner? Seems odd that a system-related issue would appear without changing the electron-builder version either
No, there were no significant changes in code or environment like you mentioned. I have tried to use a custom tmp
folder location but it didn't help, the error remained the same. Other than that I ran the build with a more detailed build logs but it didn't give more context about the error.
Is there any documentation which mentions in which cases the tmp folder could be used?