GithubHelp home page GithubHelp logo

Comments (5)

michalzaq12 avatar michalzaq12 commented on May 17, 2024 1

@J0XX0 Try setting the USE_HARD_LINKS environment variable to false

246e513
electron-userland/electron-builder#3179

from electron-nuxt.

LoopsGod avatar LoopsGod commented on May 17, 2024

Here's an example config (.circleci/config.yml):

version: 2
jobs:
  build_windows:
    docker:
      - image: electronuserland/builder:wine
    steps:
      - checkout
      - run: yarn && yarn run build
      - store_artifacts:
          path: /root/project/build

workflows:
  version: 2
  build:
    jobs:
      - build_windows

from electron-nuxt.

LoopsGod avatar LoopsGod commented on May 17, 2024

Is this issue up for consideration?

from electron-nuxt.

LoopsGod avatar LoopsGod commented on May 17, 2024

@michalzaq12 Following issue occurs due to electron-builder automatically selecting a CI configuration based on the host VM.

│  Error: EEXIST: file already exists, link '/home/runner/work/MYPROJECT/dist/main/index.js' -> '/home/runner/work/MYPROJECT/artifacts/linux-unpacked/resources/app/dist/main/index.js'
│      at processImmediate (internal/timers.js:456:21) {
│    errno: -17,
│    code: 'EEXIST',
│    syscall: 'link',
│    path: '/home/runner/work/MYPROJECT/dist/main/index.js',
│    dest: '/home/runner/work/MYPROJECT/artifacts/linux-unpacked/resources/app/dist/main/index.js'
│  }
│  

[FAIL] Electron-nuxt: Error occurred when building application
PipelineError: Error occurred when building application
    at ElectronBuilder.<anonymous> (/home/runner/work/MYPROJECT/node_modules/@xpda-dev/electron-builder/lib/ElectronBuilder.js:27:23)
    at Generator.throw (<anonymous>)
    at rejected (/home/runner/work/MYPROJECT/node_modules/@xpda-dev/electron-builder/lib/ElectronBuilder.js:5:65)
error Command failed with exit code 1.
child_process.js:660
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
    throw err;
    ^

Do you have any ideas what it could be?

from electron-nuxt.

LoopsGod avatar LoopsGod commented on May 17, 2024

@michalzaq12 Thanks for your response! That worked, it turns out my CI/CD did not correctly set the variable, I found that issue online earlier.

For people coming from the future using GitHub Actions as CI/CD server, set the following:

      - name: Set environment variable USE_HARD_LINKS
        run: echo "::set-env name=USE_HARD_LINKS::false"

from electron-nuxt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.