Error: Failed to find Electron vv1.3.4
See original GitHub issueHello,
I’m using electron-packager to build my electron app. I used The CLI to build the application until now, without issues. Now I wanted to switch to the Programming API to make the build process easier to automate, however I’m having trouble with the version argument: If I supply “v1.3.4” as version property (which I think is the correct formatting), It begings building, but the throws:
Packaging app for platform win32 x64 using electron v1.3.4
Error: Failed to find Electron vv1.3.4 for win32-x64 at https://github.com/electron/electron/releases/download/vv1.3.4/electron-vv1.3.4-win32-x64.zip
at Request.<anonymous> (C:\xampp\htdocs\bae\node_modules\nugget\index.js:170:61)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestResponse (C:\xampp\htdocs\bae\node_modules\request\request.js:954:10)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:472:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:105:23)
at TLSSocket.socketOnData (_http_client.js:361:20)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:177:18)
at TLSSocket.Readable.push (_stream_readable.js:135:10)
at TLSWrap.onread (net.js:542:20)
I saw that the version was malformed to vv1.3.4
, which of course is not the right value. Then I assumed that I would need to omit the “v” for the property, which resulted in this error:
Fatal error: Unable to parse version string
Now I assume that the formatting “v1.x.x” was correct, however still failed. Can someone help me with that?
The content of the js file:
"use strict";
const packager = require("electron-packager");
const packageJson = require("./package.json");
const options = {
"name": packageJson.name,
"app-version": packageJson.version,
"build-version": packageJson.version,
"version": "v1.3.4",
"dir": "./app",
"out": "./releases/",
"arch": packageJson.build.arch,
"platform": packageJson.build.platforms,
"asar": false,
};
console.log(options);
packager(options, function(err, appPaths) {
if (err) {
throw err;
} else {
console.log(`Built ${packageJson.name}`);
}
});
I enabled the DEBUG envoriment var for electron-packager and electron-download, the output stays the same
I’m using
- Node 6.4
- npm 3.10.3
- electron-prebuilt 1.3.4
- electron-packager 7.6.0
On Windows 10 64bit
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Per the API docs about the
version
option, you need to omit thev
.Oh! That was the problem, I had “v1.7.2” as version key, I didnt know that the electron builder takes this version too! after switching to “1.7.2” It worked. Thanks!