Git Product home page Git Product logo

Comments (5)

khwaaj avatar khwaaj commented on June 17, 2024 1

I think your problem may be with your electron-builder configuration. Try something like this instead:

"build": {
  "electronDownload": {
    "mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
  }
}

and:

"devDependencies": {
  "electron": "https://github.com/castlabs/electron-releases.git#v7.0.0-wvvmp-beta.6",
  "electron-builder": "^21.2.0",
}

from electron-releases.

Tal-telecomsante avatar Tal-telecomsante commented on June 17, 2024 1

That's perfectly work with

"electronDownload": {
    "mirror": "https://github.com/castlabs/electron-releases/releases/download/v"
 }

Thank you for your help ;)

from electron-releases.

khwaaj avatar khwaaj commented on June 17, 2024

Hi,

This happens because v7 of electron-releases is in beta and has not yet been branched from master to 7-0-x. Not sure why electron-builder would look at a non-existent branch though, it should be using the direct links for each release version instead, e.g: https://github.com/castlabs/electron-releases/archive/v7.0.0-wvvmp-beta.7.zip

How does your package.json look?

from electron-releases.

Tal-telecomsante avatar Tal-telecomsante commented on June 17, 2024

Hi, thanks for your reply.

I put informations about miror for electron-builder.

I tried with your miror but that's crashing cause the folder is named electron-releases-7.0.0-wvvmp-beta.7 instead of electron after unzip, and I got the following error :

⨯ ENOENT: no such file or directory, rename '/home/tal/Dev/electron-client/dist/linux-unpacked/electron' -> '/home/tal/Dev/electron-client/dist/linux-unpacked/electron-client'

"build": {
    "electronDownload": {
      "mirror": "https://github.com/castlabs/electron-releases/",
      "customDir": "archive",
      "customFilename": "v7.0.0-wvvmp-beta.7.zip"
    },
}

So I downloaded your folder, unzip it, rename folder electron, zip it, and serve it on my github. Now it works :D

"build": {
    "electronDownload": {
      "mirror": "https://github.com/Tal-telecomsante/electron-7/raw/",
      "customDir": "master",
      "customFilename": "electron-releases-7-0-x.zip"
    },
}

EDIT :

If i don't specify any miror, I go this error from electron-builder :

cannot resolve https://github.com/electron/electron/releases/download/v7.0.0-wvvmp-beta.6/electron-v7.0.0-wvvmp-beta.6-linux-x64.zip: status code 404

My dependencies are :

"dependencies": {
    "electron": "https://github.com/castlabs/electron-releases#v7.0.0-wvvmp-beta.6",
    "electron-builder": "21.2.0"
}

EDIT 2 :

By this way electron-builder build something not usable. Previously a .deb was created and after installing it I got a bin in /user/bin/electron-app, but now installing the .deb put me a folder in /usr/bin/electron-app containing cli.js, electron.d.ts, index.js and others..

from electron-releases.

khwaaj avatar khwaaj commented on June 17, 2024

I didn't see your latest additions in time for my comment above, the only thing you should need to change is the electronDownload-config AFAICT.

from electron-releases.

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.