Skip to content
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 cannot resolve https://github.com/electron/electron/releases/download/v25.2.0+wvcus/electron-v25.2.0+wvcus-win32-x64.zip: status code 404 #162

Open
vanminhquangtri opened this issue Jun 29, 2023 · 3 comments

Comments

@vanminhquangtri
Copy link

Hello Brothers,

My app is Vue 3 + Electron to play Widevine DRM content.

Command electron:serve work fine. But the command electron:build alway give error 404:
cannot resolve https://github.com/electron/electron/releases/download/v25.2.0+wvcus/electron-v25.2.0+wvcus-win32-x64.zip: status code 404.

The problem is electron:serve alway work fine so I don't know where issue from.

I have already change to many other version of electron-releases but the error still appear. I would appreciate to receive any advice.
My app version:
"vue": "^3.2.13",
"electron": "github:castlabs/electron-releases#v25.2.0+wvcus",
"vue-cli-plugin-electron-builder": "^3.0.0-alpha.0",
"@electron-forge/cli": "^6.2.1",

This is my full package.json:

{
  "name": "vue-3-electron",
  "version": "0.1.0",
  "private": true,
  "description": "Hello World!",
  "author": "Jane Doe",
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "lint": "vue-cli-service lint",
    "electron:start": "electron .",
    "electron:build": "vue-cli-service electron:build",
    "electron:serve": "vue-cli-service electron:serve",
    "postinstall": "electron-builder install-app-deps",
    "postuninstall": "electron-builder install-app-deps",
    "start": "electron-forge start",
    "package": "electron-forge package",
    "make": "electron-forge make"
  },
  "dependencies": {
    "core-js": "^3.8.3",
    "electron-squirrel-startup": "^1.0.0",
    "vue": "^3.2.13"
  },
  "devDependencies": {
    "@babel/core": "^7.12.16",
    "@babel/eslint-parser": "^7.12.16",
    "@electron-forge/cli": "^6.2.1",
    "@electron-forge/maker-deb": "^6.2.1",
    "@electron-forge/maker-rpm": "^6.2.1",
    "@electron-forge/maker-squirrel": "^6.2.1",
    "@electron-forge/maker-zip": "^6.2.1",
    "@electron-forge/plugin-auto-unpack-natives": "^6.2.1",
    "@vue/cli-plugin-babel": "~5.0.0",
    "@vue/cli-plugin-eslint": "~5.0.0",
    "@vue/cli-service": "~5.0.0",
    "electron": "github:castlabs/electron-releases#v25.2.0+wvcus",
    "electron-devtools-installer": "^3.1.0",
    "eslint": "^7.32.0",
    "eslint-plugin-vue": "^8.0.3",
    "vue-cli-plugin-electron-builder": "^3.0.0-alpha.0"
  },
  "eslintConfig": {
    "root": true,
    "env": {
      "node": true
    },
    "extends": [
      "plugin:vue/vue3-essential",
      "eslint:recommended"
    ],
    "parserOptions": {
      "parser": "@babel/eslint-parser"
    },
    "rules": {}
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not dead",
    "not ie 11"
  ]
}

Thank you.
image

@khwaaj
Copy link
Collaborator

khwaaj commented Jun 29, 2023

You need to set the mirror for electron-builder to use, e.g as this FAQ shows: https://github.com/castlabs/electron-releases/wiki/FAQ#how-can-i-use-electron-builder-with-ecs

@vanminhquangtri
Copy link
Author

Thank @khwaaj , I instead change to cache instead of mirror then it works, in package.json, add build property. assets is the folder where we place the zip file of electron.

"build": {
    "electronDownload": {
      "cache": "./assets",
      "isVerifyChecksum": false,
      "platform": "win32"
    }
  }

@John7125
Copy link

@vanminhquangtri Brother, what is the format of the files in the assets folder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants