mainyaa / gulp-electron

A gulp plugin for atom-shell distribute applications
MIT License
124 stars 28 forks source link

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

Open algv opened 7 years ago

algv commented 7 years ago

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(""));
});
ernaneluis commented 7 years ago

I am facing the same issue

bencompton commented 6 years ago

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.