gulp-electron icon indicating copy to clipboard operation
gulp-electron copied to clipboard

Error: unknow error , maybe you can try delete the zip packages.

Open algv opened this issue 8 years ago • 2 comments

In last time cannnot download electron by version.

My gulp task: original

var electron = require("gulp-electron");
var ELECTRON_VERSION = "v1.2.5";
var electronPlatform = "win32-x64";

gulp.task("build electron", ["trusted-crypto electron copy"], function() {
    return gulp.src("")
        .pipe(electron({
            src: "./tmp_app_build/electron-" + electronPlatform,
            packageJson: packageJson,
            release: "./build/Electron",
            cache: "./cache/electron",
            version: ELECTRON_VERSION,
            packaging: false,
            asar: true,
            token: "da809a6077bb1b0aa7c5623f7b2d5f1fec2faae4",
            platforms: [electronPlatform],
            platformResources: {
                darwin: {
                    icon: "./resources/Trusted_eSign/trusted-esign.icns"
                },
                win: {
                    icon: "./resources/Trusted_eSign/trusted-esign.ico"
                }
            }
        }))
        .pipe(gulp.dest(""));
});

algv avatar Feb 03 '17 09:02 algv

I am facing the same issue

ernaneluis avatar Jun 12 '17 20:06 ernaneluis

I ran into this issue and saw that the electron zip file being downloaded into the cache directory had a size of 0, and therefore could not be unzipped. I ran npm ls electron to get the actual version of electron my app is using (v1.7.9), then I went into my gulpfile and updated the version to that. It then was able to download version 1.7.9 of electron into the cache directory and unzip it successfully.

bencompton avatar Dec 28 '17 17:12 bencompton