electron / electron/windows-installer

Creating an installer fails when the package is too large

Open
#248 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
267
Avg merge
5h 38m
Merged PRs (30d)
1

Description

I am trying to create an installer for my application and it fails with the following error message.

```
creating windows installer
Failed with exit code: 1
Output:
Attempting to build package from 'kiosk-oven.nuspec'.
lib\net45\resources\app\os\raspbian-pibakery.img
Can not access a closed Stream.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kiosk-oven@0.1.0 create-installer-win: `node installers/windows/createinstaller.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kiosk-oven@0.1.0 create-installer-win script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\vivek\AppData\Roaming\npm-cache\_logs\2018-06-20T09_06_31_431Z-debug.log
```

FYI, `lib\net45\resources\app\os\raspbian-pibakery.img` is a fairly large file(~5gb).

Sometimes it doesn't fail while building the installer but when I try to run the installer i get the following error.
![error](https://user-images.githubusercontent.com/3069373/41650288-4c31a6d2-749b-11e8-8720-5149feec1567.png)

Am I doing something wrong? I basically need to package a OS image file along with my application.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.