You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Error Electron Builder building for Github Actions in Unix(Mac & Linux). EEXIST: file already exists #6124
I try to build my Electron APP for Github Actions.Everything is success,but I use the electron builder to build is failed.I so no understand to this problem. Details:
Building the Electron app…
yarn run v1.22.10
$ /home/runner/work/sql/sql/node_modules/.bin/electron-builder --linux
• electron-builder version=22.11.7 os=5.8.0-1039-azure
• artifacts will be published if draft release exists reason=CI detected
• loaded configuration file=/home/runner/work/sql/sql/packages/desktop/electron-builder.yml
• rebuilding native dependencies dependencies=ffi-napi@4.0.3, ref-napi@3.0.2 platform=linux arch=x64
• rebuilding native dependency name=ref-napi version=3.0.2
• rebuilding native dependency name=ffi-napi version=4.0.3
• packaging platform=linux arch=x64 electron=13.1.2 appOutDir=dist/linux-unpacked
• downloading url=https://github.com/electron/electron/releases/download/v13.1.2/electron-v13.1.2-linux-x64.zip size=77 MB parts=4
• downloaded url=https://github.com/electron/electron/releases/download/v13.1.2/electron-v13.1.2-linux-x64.zip duration=968ms
• asar usage is disabled — this is strongly not recommended solution=enable asar and use asarUnpack to unpack files that must be externally available
⨯ EEXIST: file already exists, link '/home/runner/work/sql/sql/packages/desktop/node_modules/ajv/LICENSE' -> '/home/runner/work/sql/sql/packages/desktop/dist/linux-unpacked/resources/app/node_modules/ajv/LICENSE' failedTask=build stackTrace=Error: EEXIST: file already exists, link '/home/runner/work/sql/sql/packages/desktop/node_modules/ajv/LICENSE' -> '/home/runner/work/sql/sql/packages/desktop/dist/linux-unpacked/resources/app/node_modules/ajv/LICENSE'
at processImmediate (internal/timers.js:464:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
/home/runner/work/_actions/samuelmeuli/action-electron-builder/v1.6.0/index.js:144
throw err;
^
Error: Command failed: yarn run electron-builder --linux
at checkExecSyncError (child_process.js:621:11)
at execSync (child_process.js:657:15)
at run (/home/runner/work/_actions/samuelmeuli/action-electron-builder/v1.6.0/index.js:21:27)
at runAction (/home/runner/work/_actions/samuelmeuli/action-electron-builder/v1.6.0/index.js:132:4)
at Object.<anonymous> (/home/runner/work/_actions/samuelmeuli/action-electron-builder/v1.6.0/index.js:150:1)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1047:10) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 3686,
stdout: null,
stderr: null
}
I worry about it. I using to my Local PC is no anything error.Only lucky thing is the windows version are sucessful build to Github Actions and my local PC. I test to my **local Mac,Ubuntu and Windows **.They are no error to electron-builder on build.
I can't understand to this ajv/LICENSE is file already exists. Pls tell me so why?Thanks.
When running the builder on my local machine (Ubuntu 20), everything works smoothly, but on the Github runner, it fails.
Cleaning the dist folder prior to builder the app does not solve anything.
The regression started to happen with electron-builder@22.11.1, so for the time being, I'm stuck in 22.10.5.
Reacted by Monet Lee, 1zilc, Robert Buck, Antonio Stoilkov and jessopb
Activity
mo3et commentedon Aug 3, 2021
package.json
mo3et commentedon Aug 3, 2021
The Labels is Mac and Linux. No WIndows !
mo3et commentedon Aug 3, 2021
Github Action YAML:
mo3et commentedon Aug 4, 2021
electron-builder.yml
feugy commentedon Sep 25, 2021
I confirm having the exact same issue.
When running the builder on my local machine (Ubuntu 20), everything works smoothly, but on the Github runner, it fails.
Cleaning the dist folder prior to builder the app does not solve anything.
The regression started to happen with electron-builder@22.11.1, so for the time being, I'm stuck in 22.10.5.
1zilc commentedon Oct 16, 2021
same problem
回退electron-builder
rbuck-som commentedon Oct 23, 2021
same problem
stale commentedon Apr 17, 2022
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
shanhexi commentedon Mar 31, 2024
I also have this problem, I don't know how to solve it