Open vanminhquangtri opened 1 year ago
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
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"
}
}
@vanminhquangtri Brother, what is the format of the files in the assets folder?
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:
Thank you.