Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSIS build fails #503

Closed
ghost opened this issue Jun 14, 2016 · 36 comments
Closed

NSIS build fails #503

ghost opened this issue Jun 14, 2016 · 36 comments

Comments

@ghost
Copy link

ghost commented Jun 14, 2016

Not sure if it's already supposed to be buildable, in any case here is the output:

Building one-click NSIS installer using nsis 3.0rc1
Command line defined: "PRODUCT_NAME=My App"
Command line defined: "APP_ID=com.app.my"
Command line defined: "APP_DESCRIPTION=My App Client Software"
Command line defined: "APP_BUILD_DIR=/Users/kunkinkan/Desktop/app/dist/win-unpacked"
Command line defined: "VERSION=1.5.1"
Command line defined: "MUI_ICON=/Users/kunkinkan/Desktop/app/build/icon.ico"
Command line defined: "MUI_UNICON=/Users/kunkinkan/Desktop/app/build/icon.ico"
Command line defined: "COMPANY_NAME=app Foundation"
Command line defined: "APP_EXECUTABLE_FILENAME=My App.exe"
Command line defined: "UNINSTALL_FILENAME=Uninstall My App.exe"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR=85125e2a-0211-5c49-9018-9358da1074b1"
Command line defined: "MULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1"
Command line defined: "MULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER"
Command line defined: "MULTIUSER_INSTALLMODE_ALLOW_ELEVATION"
Command line defined: "ONE_CLICK"
Processing config: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/nsisconf.nsh
Processing script file: "/Users/kunkinkan/Desktop/app/node_modules/electron-builder/templates/nsis/installer.nsi" (UTF8)

Unhandled rejection Error: libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Error: Command failed: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/osx/makensis -DPRODUCT_NAME=My App -DAPP_ID=com.app.my -DAPP_DESCRIPTION=My App Client Software -DAPP_BUILD_DIR=/Users/kunkinkan/Desktop/app/dist/win-unpacked -DVERSION=1.5.1 -DMUI_ICON=/Users/kunkinkan/Desktop/app/build/icon.ico -DMUI_UNICON=/Users/kunkinkan/Desktop/app/build/icon.ico -DCOMPANY_NAME=app Foundation -DAPP_EXECUTABLE_FILENAME=My App.exe -DUNINSTALL_FILENAME=Uninstall My App.exe -DMULTIUSER_INSTALLMODE_INSTDIR=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString -DMULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation -DMULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER -DMULTIUSER_INSTALLMODE_ALLOW_ELEVATION -DONE_CLICK -XFileBufSize 64 -XName "My App" -XOutFile "/Users/kunkinkan/Desktop/app/dist/My App Setup 1.5.1.exe" -XUnicode true -XSetCompressor /SOLID lzma -XSetCompressorDictSize 64 -XAutoCloseWindow true /Users/kunkinkan/Desktop/app/node_modules/electron-builder/templates/nsis/installer.nsi
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

    at /Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/util.ts:91:18
    at ChildProcess.exithandler (child_process.js:209:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)
From previous event:
    at Object.exec (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/util.ts:78:9)
    at NsisTarget.<anonymous> (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/targets/nsis.ts:121:15)
    at undefined.next (native)
    at tryOnImmediate (timers.js:543:15)
    at processImmediate [as _immediateCallback] (timers.js:523:5)
From previous event:
    at tsAwaiter (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/awaiter.ts:10:47)
    at Object.build (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/builder.ts:182:52)
    at Object.<anonymous> (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/build-cli.ts:8:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:449:3

Building one-click NSIS installer using nsis 3.0rc1
Error: libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Error: Command failed: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/osx/makensis -DPRODUCT_NAME=My App -DAPP_ID=com.app.my -DAPP_DESCRIPTION=My App Client Software -DAPP_BUILD_DIR=/Users/kunkinkan/Desktop/app/dist/win-unpacked -DVERSION=1.5.1 -DMUI_ICON=/Users/kunkinkan/Desktop/app/build/icon.ico -DMUI_UNICON=/Users/kunkinkan/Desktop/app/build/icon.ico -DCOMPANY_NAME=app Foundation -DAPP_EXECUTABLE_FILENAME=My App.exe -DUNINSTALL_FILENAME=Uninstall My App.exe -DMULTIUSER_INSTALLMODE_INSTDIR=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString -DMULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation -DMULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER -DMULTIUSER_INSTALLMODE_ALLOW_ELEVATION -DONE_CLICK -XFileBufSize 64 -XName "My App" -XOutFile "/Users/kunkinkan/Desktop/app/dist/My App Setup 1.5.1.exe" -XUnicode true -XSetCompressor /SOLID lzma -XSetCompressorDictSize 64 -XAutoCloseWindow true /Users/kunkinkan/Desktop/app/node_modules/electron-builder/templates/nsis/installer.nsi
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

    at /Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/util.ts:91:18
    at ChildProcess.exithandler (child_process.js:209:5)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at Pipe._handle.close [as _onclose] (net.js:492:12)
From previous event:
    at Object.exec (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/util.ts:78:9)
    at NsisTarget.<anonymous> (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/targets/nsis.ts:121:15)
    at undefined.next (native)
    at tryOnImmediate (timers.js:543:15)
    at processImmediate [as _immediateCallback] (timers.js:523:5)
From previous event:
    at tsAwaiter (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/awaiter.ts:10:47)
    at Object.build (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/builder.ts:182:52)
    at Object.<anonymous> (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/build-cli.ts:8:28)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:449:3

@develar
Copy link
Member

develar commented Jun 14, 2016

Works for me on OS X. Please specify OS X version.

@ghost
Copy link
Author

ghost commented Jun 14, 2016

el capitan, latest

@develar
Copy link
Member

develar commented Jun 14, 2016

  1. brew install --devel makensis. Must be devel because nsis 3 is required.
  2. Copy makensis binary over /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/osx/makensis
  3. Try to build.

@ghost
Copy link
Author

ghost commented Jun 14, 2016

I did, but same error.

@develar
Copy link
Member

develar commented Jun 14, 2016

If possible, please send me your app to test.

@ghost
Copy link
Author

ghost commented Jun 14, 2016

ok, i'll send it tomorrow, thanks

@ghost
Copy link
Author

ghost commented Jun 15, 2016

I just tried it with a new test app, cloned electron-quick-start and built that (two package json), but the error is the same, so it seems it has nothing to do with the app itself.

@ghost
Copy link
Author

ghost commented Jun 16, 2016

When I copy the command myself it complains about spaces in certain filenames, not sure if that's the issue?

Command line defined: "UNINSTALL_FILENAME=Uninstall"
Can't open script "electron-quick-start.exe"

(coming from has "DUNINSTALL_FILENAME=Uninstall electron-quick-start.exe" parameter), and for some other parameters also.

When I fix all that and run the command again, this is the output;


Command line defined: "PRODUCT_NAME=electron-quick-start"
Command line defined: "APP_ID=com.test.app"
Command line defined: "APP_DESCRIPTION=A"
Command line defined: "APP_BUILD_DIR=/Users/kunkinkan/Desktop/testApp/dist/win-unpacked"
Command line defined: "VERSION=1.0.0"
Command line defined: "MUI_ICON=/Users/kunkinkan/Desktop/testApp/build/icon.ico"
Command line defined: "MUI_UNICON=/Users/kunkinkan/Desktop/testApp/build/icon.ico"
Command line defined: "COMPANY_NAME=GitHub"
Command line defined: "APP_EXECUTABLE_FILENAME=electron-quick-start.exe"
Command line defined: "UNINSTALL_FILENAME=Uninstall-electron-quick-start.exe"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR=0db51616-874e-5081-a974-d1a38e110024"
Command line defined: "MULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=0db51616-874e-5081-a974-d1a38e110024"
Command line defined: "MULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=0db51616-874e-5081-a974-d1a38e110024"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER"
Command line defined: "MULTIUSER_INSTALLMODE_ALLOW_ELEVATION"
Command line defined: "ONE_CLICK"
FileBufSize expects 1 parameters, got 0.
Usage: FileBufSize buf_size_mb

@ghost
Copy link
Author

ghost commented Jun 16, 2016

/Users/kunkinkan/.cache/nsis/nsis-3.0rc1/osx/makensis -DPRODUCT_NAME="electron-quick-start" -DAPP_ID="com.test.app" -DAPP_DESCRIPTION="A minimal Electron application" -DAPP_BUILD_DIR="/Users/kunkinkan/Desktop/testApp/dist/win-unpacked" -DVERSION="1.0.0" -DMUI_ICON="/Users/kunkinkan/Desktop/testApp/build/icon.ico" -DMUI_UNICON="/Users/kunkinkan/Desktop/testApp/build/icon.ico" -DCOMPANY_NAME="GitHub" -DAPP_EXECUTABLE_FILENAME="electron-quick-start.exe" -DUNINSTALL_FILENAME="Uninstall electron-quick-start.exe" -DMULTIUSER_INSTALLMODE_INSTDIR="0db51616-874e-5081-a974-d1a38e110024" -DMULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY="0db51616-874e-5081-a974-d1a38e110024" -DMULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY="0db51616-874e-5081-a974-d1a38e110024" -DMULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME="UninstallString" -DMULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME="InstallLocation" -DMULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER -DMULTIUSER_INSTALLMODE_ALLOW_ELEVATION -DONE_CLICK -XFileBufSize 64 -XName "electron-quick-start" -XOutFile "/Users/kunkinkan/Desktop/testApp/dist/electron-quick-start Setup 1.0.0.exe" -XUnicode true -XSetCompressor /SOLID lzma -XSetCompressorDictSize 64 -XAutoCloseWindow true /Users/kunkinkan/Desktop/testApp/node_modules/electron-builder/templates/nsis/installer.nsi
Note that the parameter does seem present... (XFileBufSize)

@develar
Copy link
Member

develar commented Jun 16, 2016

@kunkinkan You can expect some fix tomorrow. Not ready to push yet.

Note that the parameter does seem present... (XFileBufSize)

-X arg must be enclosed in quotes. -X"FileBufSize 64"

@ghost
Copy link
Author

ghost commented Jun 16, 2016

Cool, I changed nsis.js to include the quotes, still fails though. When running the command itself get the error "Can't open script "Setup". This is just FYI, maybe it's because I run the command standalone. There is no real error message in the builder, just "command failed". Will try your version when you push it. thanks.

@develar
Copy link
Member

develar commented Jun 17, 2016

Please try 5.4.4 But before delete ~/.cache dir.

@ghost
Copy link
Author

ghost commented Jun 17, 2016

Deleted .cache dir;

`Error: Command failed: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/mac/makensis -DAPP_ID=com.app.my -DPRODUCT_NAME=My App -DINST_DIR_NAME=My App -DAPP_DESCRIPTION=My App -DAPP_ARCHIVE=/Users/kunkinkan/Desktop/app/dist/app.7z -DVERSION=0.9.22-beta -DMUI_ICON=/Users/kunkinkan/Desktop/app/build/icon.ico -DMUI_UNICON=/Users/kunkinkan/Desktop/app/build/icon.ico -DCOMPANY_NAME=app Foundation -DAPP_EXECUTABLE_FILENAME=My App.exe -DUNINSTALL_FILENAME=Uninstall My App.exe -DMULTIUSER_INSTALLMODE_INSTDIR=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1 -DMULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString -DMULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation -DMULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER -DMULTIUSER_INSTALLMODE_ALLOW_ELEVATION -DCOMPRESS=auto -DONE_CLICK -XFileBufSize 64 -XName "My App" -XOutFile "/Users/kunkinkan/Desktop/app/dist/My App Setup 0.9.22-beta-ia32.exe" -XUnicode true -XVIProductVersion 0.9.22.0 -XVIAddVersionKey ProductName "My App" -XVIAddVersionKey CompanyName "app Foundation" -XVIAddVersionKey LegalCopyright "Copyright © 2016 app Foundation" -XVIAddVersionKey FileDescription "My App" -XVIAddVersionKey FileVersion "0.9.22-beta" -XShowInstDetails nevershow -XShowUninstDetails nevershow -XBrandingText " " -XSetCompressor lzma -XSetCompressorDictSize 64 -XAutoCloseWindow true /Users/kunkinkan/Desktop/app/node_modules/electron-builder/templates/nsis/installer.nsi
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Command line defined: "APP_ID=com.app.my"
Command line defined: "PRODUCT_NAME=My App"
Command line defined: "INST_DIR_NAME=My App"
Command line defined: "APP_DESCRIPTION=My App"
Command line defined: "APP_ARCHIVE=/Users/kunkinkan/Desktop/app/dist/app.7z"
Command line defined: "VERSION=0.9.22-beta"
Command line defined: "MUI_ICON=/Users/kunkinkan/Desktop/app/build/icon.ico"
Command line defined: "MUI_UNICON=/Users/kunkinkan/Desktop/app/build/icon.ico"
Command line defined: "COMPANY_NAME=app Foundation"
Command line defined: "APP_EXECUTABLE_FILENAME=My App.exe"
Command line defined: "UNINSTALL_FILENAME=Uninstall My App.exe"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR=85125e2a-0211-5c49-9018-9358da1074b1"
Command line defined: "MULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1"
Command line defined: "MULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=85125e2a-0211-5c49-9018-9358da1074b1"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER"
Command line defined: "MULTIUSER_INSTALLMODE_ALLOW_ELEVATION"
Command line defined: "COMPRESS=auto"
Command line defined: "ONE_CLICK"
Processing config: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/nsisconf.nsh
Processing script file: "/Users/kunkinkan/Desktop/app/node_modules/electron-builder/templates/nsis/installer.nsi" (UTF8)

libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

at /Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/util.ts:86:16
at ChildProcess.exithandler (child_process.js:209:5)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:850:16)
at Socket.<anonymous> (internal/child_process.js:323:11)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at Pipe._handle.close [as _onclose] (net.js:492:12)

From previous event:
at Object.exec (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/util.ts:72:9)
at NsisTarget. (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/targets/nsis.ts:158:15)
at undefined.next (native)
From previous event:
at tsAwaiter (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/awaiter.ts:10:47)
at Object.build (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/builder.ts:183:52)
at Object. (/Users/kunkinkan/Desktop/app/node_modules/electron-builder/src/build-cli.ts:8:28)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:160:18)
at node.js:449:3`

@ghost
Copy link
Author

ghost commented Jun 17, 2016

Oh , seems to be the same issue again with not adding quotes to the parameters?

@develar
Copy link
Member

develar commented Jun 17, 2016

Issue is not yet clear. Ok, if you want to help, please install git lfs (https://git-lfs.github.com) and

git lfs clone https://github.com/electron-userland/electron-builder.git electron-builder
cd electron-builder
npm install
npm test

to run tests on your machine (not all tests will be succeeded, it is ok).

@develar
Copy link
Member

develar commented Jun 17, 2016

NSIS test passed on CI also — https://travis-ci.org/develar/electron-builder/jobs/138433525 Could you please try on another machine?

@ghost
Copy link
Author

ghost commented Jun 17, 2016

`kunkinkan@imac-kunkinkan-157:~/Desktop/lfs/electron-builder$ npm test

> [email protected] pretest /Users/kunkinkan/Desktop/lfs/electron-builder
> npm run compile && npm run lint


> [email protected] compile /Users/kunkinkan/Desktop/lfs/electron-builder
> npm run compile-production && npm run compile-test


> [email protected] compile-production /Users/kunkinkan/Desktop/lfs/electron-builder
> tsconfig -i 2 && ts-babel


> [email protected] compile-test /Users/kunkinkan/Desktop/lfs/electron-builder
> tsconfig -i 2 test && ts-babel test


> [email protected] lint /Users/kunkinkan/Desktop/lfs/electron-builder
> tslint src/*.ts test/src/*.ts


> [email protected] test /Users/kunkinkan/Desktop/lfs/electron-builder
> node ./test/out/helpers/runTests.js

Downloading electron-v1.2.1-mas-x64.zip
[============================================>] 100.0% of 41.63 MB (5.55 MB/s)
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-linux:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
npm WARN optional Skipping failed optional dependency /7zip-bin/7zip-bin-win:
npm WARN notsup Not compatible with your operating system or architecture: [email protected]

(node:58883) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58878) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58880) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58876) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58884) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58881) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58879) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58882) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
(node:58877) DeprecationWarning: loudRejection/api is deprecated. Use the currently-unhandled module instead.
  ✔ RepoSlugTest › repo slug from TRAVIS_REPO_SLUG
  ✔ RepoSlugTest › repo slug from APPVEYOR
  - winPackagerTest › delta
  ✔ BuildTest › cli (103ms)
  - BuildTest › Build OS X on Windows is not supported
Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
  ✔ BuildTest › empty description (135ms)
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Rebuilding app dependencies for arch x64 to /Users/kunkinkan/Desktop/lfs/electron-builder/test/fixtures/test-app/app

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
  ✔ CodeSignTest › create keychain (492ms)
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Rebuilding app dependencies for arch x64 to /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fj-ipk14vxw-3/app

Packaging for platform darwin x64 using electron 1.2.1 to customDist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Release this.tag doesn't exists, creating one
Rebuilding app dependencies for arch x64 to /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fh-ipk14vyi-4/app

Rebuilding app dependencies for arch x64 to /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fh-ipk14vyi-7/app

Release this.tag doesn't exists, creating one
Release this.tag doesn't exists, creating one
Release this.tag doesn't exists, creating one
Rebuilding app dependencies for arch x64 to /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fh-ipk14vyi-5/app

  ✔ linuxPackagerTest › no-author-email (895ms)
Rebuilding app dependencies for arch x64 to /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fh-ipk14vyi-6/app

  ✔ BuildTest › build in the app package.json (1.1s)
  ✔ BuildTest › name in the build (1.1s)
  ✔ httpRequestTest › download to nonexistent dir (1.3s)
Rebuilding app dependencies for arch x64 to /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fh-ipk14vyi-a/www

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
  ✔ CodeSignTest › create keychain with installers (1.5s)
Packaging for platform mas x64 using electron 1.2.1 to dist/mas

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform mas x64 using electron 1.2.1 to dist/mas

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Signing win-unpacked (certificate file "secretFile")
  ✔ winPackagerTest › icon < 256 (1.8s)
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

  ✔ winPackagerTest › icon not an image (1.8s)
  ✔ winPackagerTest › detect install-spinner, certificateFile/password (1.8s)
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
  ✔ osxPackagerTest › invalid target (2.3s)
  ✔ osxPackagerTest › custom background (2.3s)
Artifact icon.icns already exists, overwrite one
  ✔ ArtifactPublisherTest › GitHub upload (2.8s)
  ✔ ArtifactPublisherTest › GitHub upload org (2.8s)
Signing app (identity: Test Test)

Signing app (identity: Test Test)

Signing app (identity: Test Test)

  ✔ osxPackagerTest › custom mas (3s)
  ✔ osxPackagerTest › entitlements in build dir (3s)
  ✔ osxPackagerTest › entitlements in the package.json (3s)
  ✔ ArtifactPublisherTest › prerelease (3.1s)
  ✔ ArtifactPublisherTest › GitHub overwrite on upload (4.9s)
  ✔ globTest › files (48.9s)
"ignore is specified as function, may be new "files" option will be suit your needs? Please see https://github.com/electron-userland/electron-builder/wiki/Options#BuildMetadata-files
  ✔ globTest › ignore node_modules known dev dep (49.9s)
  ✔ globTest › ignore build resources (50s)
tar (child): lzip: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
gtar: /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-1/dist/TestApp-1.1.0.tar.lz: Cannot write: Broken pipe
gtar: Error is not recoverable: exiting now
  ✖ linuxPackagerTest › tar failed with "gtar exited with code 2"
gtar: ./content_shell.pak: file changed as we read it
gtar: ./icudtl.dat: File removed before we read it
gtar: ./libffmpeg.so: File removed before we read it
gtar: ./libnode.so: File removed before we read it
gtar: ./LICENSE: File removed before we read it
gtar: ./LICENSES.chromium.html: File removed before we read it
gtar: ./locales: File removed before we read it
gtar: ./natives_blob.bin: File removed before we read it
gtar: ./resources: File removed before we read it
gtar: ./snapshot_blob.bin: File removed before we read it
gtar: ./Test App: File removed before we read it
gtar: ./version: File removed before we read it
gtar: .: file changed as we read it
gtar: ./content_shell.pak: file changed as we read it
gtar: ./icudtl.dat: File removed before we read it
gtar: ./libffmpeg.so: File removed before we read it
gtar: ./libnode.so: File removed before we read it
gtar: ./LICENSE: File removed before we read it
gtar: ./LICENSES.chromium.html: File removed before we read it
gtar: ./locales: File removed before we read it
gtar: ./natives_blob.bin: File removed before we read it
gtar: ./resources: File removed before we read it
gtar: ./snapshot_blob.bin: File removed before we read it
gtar: ./Test App: File removed before we read it
gtar: ./version: File removed before we read it
gtar: .: file changed as we read it
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Signing app (identity: Test Test)

Signing app (identity: Test Test)

Skip app dependencies rebuild because platform is different
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

  ✔ BuildTest › electron version from build (1m 20s)
  ✔ BuildTest › electron version from electron-prebuilt dependency (1m 20s)
Signing app (identity: Test Test)

Signing app (identity: Test Test)

Signing app (identity: Test Test)

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating OS X zip
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Warning: Application icon is not set, default Electron icon will be used
Creating OS X zip
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Creating OS X zip
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Skip app dependencies rebuild because platform is different
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Creating OS X zip
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Creating OS X zip
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to customDist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

  ✔ BuildTest › invalid main in the app package.json (2m 48.8s)
  ✔ osxPackagerTest › only zip (2m 49s)
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Skip app dependencies rebuild because platform is different
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

  ✔ BuildTest › invalid main in the app package.json (no asar) (2m 58.2s)
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Creating OS X zip
Building Squirrel.Windows installer

Building NSIS installer

Building NSIS installer

Creating DMG
Creating OS X zip
Creating DMG
Creating OS X zip
Skip app dependencies rebuild because platform is different
Creating OS X 7z
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Building Squirrel.Windows installer

Creating Windows zip
Building Squirrel.Windows installer

  ✔ winPackagerTest › msi as string (4m 1.1s)
  ✔ linuxPackagerTest › icons from ICNS (4m 16.5s)
  ✔ linuxPackagerTest › deb (4m 16.6s)
  ✔ linuxPackagerTest › custom configuration (4m 16.5s)
  ✖ linuxPackagerTest › targets failed with "Command failed: /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/fpm -s dir -t freebsd --architecture amd64 --name TestApp --force --after-install /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-linux-19fl-ipk14vy2-8/after-install --after-remove /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-linux-19fl-ipk14vy2-8/after-remove --description 
 Test Application (test quite “ #378) --maintainer Foo Bar <[email protected]> --vendor Foo Bar <[email protected]> --version 1.1.0 --package /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/dist/TestApp-1.1.0.freebsd --url http://foo.example.com --license MIT --iteration 42 /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/dist/linux/=/opt/Test App /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/128x128.png=/usr/share/icons/hicolor/128x128/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/16x16.png=/usr/share/icons/hicolor/16x16/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/24x24.png=/usr/share/icons/hicolor/24x24/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/256x256.png=/usr/share/icons/hicolor/256x256/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/32x32.png=/usr/share/icons/hicolor/32x32/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/48x48.png=/usr/share/icons/hicolor/48x48/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/512x512.png=/usr/share/icons/hicolor/512x512/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/64x64.png=/usr/share/icons/hicolor/64x64/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fl-ipk14vy2-0/build/icons/96x96.png=/usr/share/icons/hicolor/96x96/apps/TestApp.png /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-linux-19fl-ipk14vy2-8/Test App.desktop=/usr/share/applications/Test App.desktop
/Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:72:in `encode': "\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:72:in `to_json'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:72:in `block in output'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:71:in `open'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:71:in `output'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/command.rb:480:in `execute'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/vendor/ruby/2.2.0/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/command.rb:560:in `run'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/vendor/ruby/2.2.0/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/bin/fpm:8:in `<main>'

/Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:72:in `encode': "\xE2" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:72:in `to_json'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:72:in `block in output'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:71:in `open'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/package/freebsd.rb:71:in `output'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/command.rb:480:in `execute'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/vendor/ruby/2.2.0/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/lib/fpm/command.rb:560:in `run'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/vendor/ruby/2.2.0/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
  from /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/lib/app/bin/fpm:8:in `<main>'
"
  ✔ osxPackagerTest › no background (4m 25.9s)
  ✔ osxPackagerTest › no build directory (4m 28.9s)
  ✔ osxPackagerTest › only dmg (4m 28.9s)
  ✖ winPackagerTest › nsis failed with "Command failed: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/mac/makensis -DAPP_ID=org.electron-builder.testApp -DPRODUCT_NAME=Test App -DINST_DIR_NAME=Test App -DAPP_DESCRIPTION=Test Application (test quite “ #378) -DAPP_ARCHIVE=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/dist/app.7z -DVERSION=1.1.0 -DMUI_ICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/build/icon.ico -DMUI_UNICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/build/icon.ico -DCOMPANY_NAME=Foo Bar -DAPP_EXECUTABLE_FILENAME=Test App.exe -DUNINSTALL_FILENAME=Uninstall Test App.exe -DMULTIUSER_INSTALLMODE_INSTDIR=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString -DMULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation -DMULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER -DMULTIUSER_INSTALLMODE_ALLOW_ELEVATION -DCOMPRESS=off -DONE_CLICK -XFileBufSize 64 -XName "Test App" -XOutFile "/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/dist/Test App Setup 1.1.0.exe" -XUnicode true -XVIProductVersion 1.1.0.42 -XVIAddVersionKey ProductName "Test App" -XVIAddVersionKey CompanyName "Foo Bar" -XVIAddVersionKey LegalCopyright "Copyright © 2016 Foo Bar" -XVIAddVersionKey FileDescription "Test Application (test quite “ #378)" -XVIAddVersionKey FileVersion "1.1.0.42" -XShowInstDetails nevershow -XShowUninstDetails nevershow -XBrandingText " " -XSetCompress off -XAutoCloseWindow true /private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/templates/nsis/installer.nsi
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Command line defined: "APP_ID=org.electron-builder.testApp"
Command line defined: "PRODUCT_NAME=Test App"
Command line defined: "INST_DIR_NAME=Test App"
Command line defined: "APP_DESCRIPTION=Test Application (test quite “ #378)"
Command line defined: "APP_ARCHIVE=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/dist/app.7z"
Command line defined: "VERSION=1.1.0"
Command line defined: "MUI_ICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/build/icon.ico"
Command line defined: "MUI_UNICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/build/icon.ico"
Command line defined: "COMPANY_NAME=Foo Bar"
Command line defined: "APP_EXECUTABLE_FILENAME=Test App.exe"
Command line defined: "UNINSTALL_FILENAME=Uninstall Test App.exe"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR=979dc69a-b346-5799-a5c9-76629525ccf4"
Command line defined: "MULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4"
Command line defined: "MULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER"
Command line defined: "MULTIUSER_INSTALLMODE_ALLOW_ELEVATION"
Command line defined: "COMPRESS=off"
Command line defined: "ONE_CLICK"
Processing config: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/nsisconf.nsh
Processing script file: "/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/templates/nsis/installer.nsi" (UTF8)

libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
"
  ✖ winPackagerTest › beta version failed with "Command failed: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/mac/makensis -DAPP_ID=org.electron-builder.testApp -DPRODUCT_NAME=Test App -DINST_DIR_NAME=Test App -DAPP_DESCRIPTION=Test Application (test quite “ #378) -DAPP_ARCHIVE=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-1/dist/app.7z -DVERSION=3.0.0-beta.2 -DMUI_ICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-1/build/icon.ico -DMUI_UNICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-1/build/icon.ico -DCOMPANY_NAME=Foo Bar -DAPP_EXECUTABLE_FILENAME=Test App.exe -DUNINSTALL_FILENAME=Uninstall Test App.exe -DMULTIUSER_INSTALLMODE_INSTDIR=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString -DMULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation -DMULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER -DMULTIUSER_INSTALLMODE_ALLOW_ELEVATION -DCOMPRESS=off -DONE_CLICK -XFileBufSize 64 -XName "Test App" -XOutFile "/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-1/dist/Test App Setup 3.0.0-beta.2.exe" -XUnicode true -XVIProductVersion 3.0.0.42 -XVIAddVersionKey ProductName "Test App" -XVIAddVersionKey CompanyName "Foo Bar" -XVIAddVersionKey LegalCopyright "Copyright © 2016 Foo Bar" -XVIAddVersionKey FileDescription "Test Application (test quite “ #378)" -XVIAddVersionKey FileVersion "3.0.0-beta.2.42" -XShowInstDetails nevershow -XShowUninstDetails nevershow -XBrandingText " " -XSetCompress off -XAutoCloseWindow true /private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/templates/nsis/installer.nsi
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

Command line defined: "APP_ID=org.electron-builder.testApp"
Command line defined: "PRODUCT_NAME=Test App"
Command line defined: "INST_DIR_NAME=Test App"
Command line defined: "APP_DESCRIPTION=Test Application (test quite “ #378)"
Command line defined: "APP_ARCHIVE=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-1/dist/app.7z"
Command line defined: "VERSION=3.0.0-beta.2"
Command line defined: "MUI_ICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-1/build/icon.ico"
Command line defined: "MUI_UNICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-1/build/icon.ico"
Command line defined: "COMPANY_NAME=Foo Bar"
Command line defined: "APP_EXECUTABLE_FILENAME=Test App.exe"
Command line defined: "UNINSTALL_FILENAME=Uninstall Test App.exe"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR=979dc69a-b346-5799-a5c9-76629525ccf4"
Command line defined: "MULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4"
Command line defined: "MULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString"
Command line defined: "MULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation"
Command line defined: "MULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER"
Command line defined: "MULTIUSER_INSTALLMODE_ALLOW_ELEVATION"
Command line defined: "COMPRESS=off"
Command line defined: "ONE_CLICK"
Processing config: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/nsisconf.nsh
Processing script file: "/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/templates/nsis/installer.nsi" (UTF8)

libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
"
  ✔ BuildTest › www as default dir (4m 50.8s)
Skip app dependencies rebuild because platform is different
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Skip app dependencies rebuild because platform is different
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to customDist/win-unpacked

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

  ✔ osxPackagerTest › two-package (4m 59.6s)
Building Squirrel.Windows installer

  ✔ osxPackagerTest › one-package (5m 7.8s)
  ✔ linuxPackagerTest › rpm and tar.gz (5m 26.4s)
  ✔ globTest › extraResources (5m 41.7s)
Building Squirrel.Windows installer

Building Squirrel.Windows installer

  ✔ BuildTest › relative index (5m 56.8s)
  ✔ BuildTest › main in the app package.json (no asar) (5m 57.3s)
  ✔ BuildTest › custom output dir (5m 57.7s)
  ✔ winPackagerTest › win (6m 6.9s)
  ✔ osxPackagerTest › mas (6m 13.5s)
  ✔ BuildTest › custom buildResources dir (6m 18.8s)
  ✔ osxPackagerTest › mas and 7z (6m 22.7s)
  ✔ BuildTest › afterPack (6m 27.8s)

  4 tests failed [19:55:31]
  2 tests skipped


  1. linuxPackagerTest › tar
  Error: gtar exited with code 2
    ChildProcess.childProcess.on.code (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:115:14)
    From previous event:
        Object.spawn (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:100:9)
        Object.<anonymous> (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/targets/archive.ts:35:16)
    From previous event:
        tsAwaiter (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/awaiter.ts:10:47)
        Object.assertPack (/Users/kunkinkan/Desktop/lfs/electron-builder/test/src/helpers/packTester.ts:39:121)
        Test.avaEx_1.default.ifDevOrLinuxCi [as fn] (/Users/kunkinkan/Desktop/lfs/electron-builder/test/src/linuxPackagerTest.ts:24:44)
        Test._run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/test.js:97:14)
        Test.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/test.js:145:17)
        Sequence.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Concurrent._runTest (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/concurrent.js:55:20)
        Concurrent.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/concurrent.js:34:24)
        Sequence.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Sequence.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Runner.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/runner.js:199:54)
        process.<anonymous> (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/index.js:88:10)
        process.emit (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/source-map-support/source-map-support.js:415:21)
        process.<anonymous> (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/test-worker.js:116:10)
        process.emit (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/source-map-support/source-map-support.js:415:21)


  2. linuxPackagerTest › targets
  Error: Command failed: /Users/kunkinkan/.cache/fpm/fpm-1.5.1-20150715-2.2.2-osx/fpm -s dir -t freebsd --architecture amd64 --name TestApp --force --after-install /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-linux-19fl-ipk14vy2-8/after-install --after-remove /var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-linux-19fl-ipk14vy2-8/after-remove --description 

        /private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:86:16
        ChildProcess.exithandler (child_process.js:209:5)
    From previous event:
        Object.exec (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:72:9)
        LinuxPackager.<anonymous> (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/linuxPackager.ts:278:15)
    From previous event:
        tsAwaiter (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/src/awaiter.ts:10:47)
        Object.assertPack (/Users/kunkinkan/Desktop/lfs/electron-builder/test/src/helpers/packTester.ts:39:121)
        Test.avaEx_1.default.ifDevOrLinuxCi [as fn] (/Users/kunkinkan/Desktop/lfs/electron-builder/test/src/linuxPackagerTest.ts:12:48)
        Test._run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/test.js:97:14)
        Test.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/test.js:145:17)
        Sequence.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Concurrent._runTest (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/concurrent.js:55:20)
        Concurrent.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/concurrent.js:34:24)
        Sequence.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Sequence.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Runner.run (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/lib/runner.js:199:54)
        process.<anonymous> (/Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/ava-tf/index.js:88:10)
        process.emit (/private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electError: /Users/kunkinkan/Desktop/lfs/electron-builder/node_modules/.bin/ava exited with code 1
    at ChildProcess.childProcess.on.code (/Users/kunkinkan/Desktop/lfs/electron-builder/src/util.ts:115:14)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
From previous event:
    at spawn (/Users/kunkinkan/Desktop/lfs/electron-builder/src/util.ts:100:9)
    at runTests (/Users/kunkinkan/Desktop/lfs/electron-builder/test/src/helpers/runTests.ts:153:9)
    at /Users/kunkinkan/Desktop/lfs/electron-builder/test/src/helpers/runTests.ts:45:1
    at undefined.next (native)
    at tryOnImmediate (timers.js:543:15)
    at processImmediate [as _immediateCallback] (timers.js:523:5)
From previous event:
    at tsAwaiter (/Users/kunkinkan/Desktop/lfs/electron-builder/src/awaiter.ts:10:47)
    at main (/Users/kunkinkan/Desktop/lfs/electron-builder/test/src/helpers/runTests.ts:24:1)
    at Object.<anonymous> (/Users/kunkinkan/Desktop/lfs/electron-builder/test/src/helpers/runTests.ts:47:7)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Function.Module.runMain (module.js:575:10)
    at startup (node.js:160:18)
    at node.js:449:3
npm ERR! Test failed.  See above for more details.`

@develar
Copy link
Member

develar commented Jun 17, 2016

winPackagerTest › nsis failed with "Command failed: /Users/kunkinkan/.cache/nsis/nsis-3.0rc1/mac/makensis -DAPP_ID=org.electron-builder.testApp -DPRODUCT_NAME=Test App -DINST_DIR_NAME=Test App -DAPP_DESCRIPTION=Test Application (test quite “ #378) -DAPP_ARCHIVE=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/dist/app.7z -DVERSION=1.1.0 -DMUI_ICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/build/icon.ico -DMUI_UNICON=/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/build/icon.ico -DCOMPANY_NAME=Foo Bar -DAPP_EXECUTABLE_FILENAME=Test App.exe -DUNINSTALL_FILENAME=Uninstall Test App.exe -DMULTIUSER_INSTALLMODE_INSTDIR=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_INSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_UNINSTALL_REGISTRY_KEY=979dc69a-b346-5799-a5c9-76629525ccf4 -DMULTIUSER_INSTALLMODE_DEFAULT_REGISTRY_VALUENAME=UninstallString -DMULTIUSER_INSTALLMODE_INSTDIR_REGISTRY_VALUENAME=InstallLocation -DMULTIUSER_INSTALLMODE_DEFAULT_CURRENTUSER -DMULTIUSER_INSTALLMODE_ALLOW_ELEVATION -DCOMPRESS=off -DONE_CLICK -XFileBufSize 64 -XName "Test App" -XOutFile "/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron-builder-test-19fo-ipk14vre-0/dist/Test App Setup 1.1.0.exe" -XUnicode true -XVIProductVersion 1.1.0.42 -XVIAddVersionKey ProductName "Test App" -XVIAddVersionKey CompanyName "Foo Bar" -XVIAddVersionKey LegalCopyright "Copyright © 2016 Foo Bar" -XVIAddVersionKey FileDescription "Test Application (test quite “ #378)" -XVIAddVersionKey FileVersion "1.1.0.42" -XShowInstDetails nevershow -XShowUninstDetails nevershow -XBrandingText " " -XSetCompress off -XAutoCloseWindow true /private/var/folders/h8/9nch5swd5lb7psblxpzc6l4m0000gp/T/electron_builder_published/node_modules/electron-builder/templates/nsis/installer.nsi
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

The same error. Something wrong with your machine. Could you please try on another?

@ghost
Copy link
Author

ghost commented Jun 17, 2016

seems to work on this other one?

iMac:electron-builder kunkinkan$ npm test

> [email protected] pretest /Users/kunkinkan/Downloads/electron-builder
> npm run compile && npm run lint


> [email protected] compile /Users/kunkinkan/Downloads/electron-builder
> npm run compile-production && npm run compile-test


> [email protected] compile-production /Users/kunkinkan/Downloads/electron-builder
> tsconfig -i 2 && ts-babel


> [email protected] compile-test /Users/kunkinkan/Downloads/electron-builder
> tsconfig -i 2 test && ts-babel test


> [email protected] lint /Users/kunkinkan/Downloads/electron-builder
> tslint src/*.ts test/src/*.ts


> [email protected] test /Users/kunkinkan/Downloads/electron-builder
> node ./test/out/helpers/runTests.js

npm WARN install Couldn't install optional dependency: Unsupported
npm WARN install Couldn't install optional dependency: Unsupported

loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
loudRejection/api is deprecated. Use the currently-unhandled module instead.
  ✔ RepoSlugTest › repo slug from TRAVIS_REPO_SLUG
  ✔ RepoSlugTest › repo slug from APPVEYOR
  - winPackagerTest › delta
  ✔ BuildTest › cli (147ms)
  - BuildTest › Build OS X on Windows is not supported
Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
  ✔ BuildTest › empty description (198ms)
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Rebuilding app dependencies for arch x64 to /Users/kunkinkan/Downloads/electron-builder/test/fixtures/test-app/app

  ✔ CodeSignTest › create keychain (582ms)
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
  ✔ httpRequestTest › download to nonexistent dir (841ms)
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Release this.tag doesn't exists, creating one
Release this.tag doesn't exists, creating one
Skip app dependencies rebuild because dev and app dependencies are not separated
Release this.tag doesn't exists, creating one
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Release this.tag doesn't exists, creating one
Rebuilding app dependencies for arch x64 to /var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m8-ipk7u5ki-3/app

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to customDist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
  ✔ linuxPackagerTest › no-author-email (1.1s)
  ✔ CodeSignTest › create keychain with installers (1.2s)
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Rebuilding app dependencies for arch x64 to /var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-7/app

Rebuilding app dependencies for arch x64 to /var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-4/app

Rebuilding app dependencies for arch x64 to /var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-5/app

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Rebuilding app dependencies for arch x64 to /var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-6/app

  ✔ BuildTest › name in the build (1.7s)
  ✔ BuildTest › build in the app package.json (1.7s)
Rebuilding app dependencies for arch x64 to /var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-a/www

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform mas x64 using electron 1.2.1 to dist/mas

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Signing win-unpacked (certificate file "secretFile")
Skip app dependencies rebuild because dev and app dependencies are not separated
  ✔ winPackagerTest › icon < 256 (2.2s)
  ✔ winPackagerTest › icon not an image (2.3s)
  ✔ winPackagerTest › detect install-spinner, certificateFile/password (2.3s)
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform mas x64 using electron 1.2.1 to dist/mas

Artifact icon.icns already exists, overwrite one
  ✔ ArtifactPublisherTest › GitHub upload (2.8s)
  ✔ ArtifactPublisherTest › GitHub upload org (2.7s)
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

  ✔ ArtifactPublisherTest › prerelease (3s)
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

Skip app dependencies rebuild because dev and app dependencies are not separated
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform darwin x64 using electron 1.2.1 to dist/osx

  ✔ osxPackagerTest › invalid target (3.8s)
  ✔ osxPackagerTest › custom background (4.3s)
Signing app (identity: Test Test)

Signing app (identity: Test Test)

  ✔ osxPackagerTest › custom mas (4.7s)
  ✔ osxPackagerTest › entitlements in the package.json (4.7s)
  ✔ ArtifactPublisherTest › GitHub overwrite on upload (4.6s)
Signing app (identity: Test Test)

  ✔ osxPackagerTest › entitlements in build dir (5.1s)
  ✔ globTest › files (10.6s)
"ignore is specified as function, may be new "files" option will be suit your needs? Please see https://github.com/electron-userland/electron-builder/wiki/Options#BuildMetadata-files
  ✔ globTest › ignore node_modules known dev dep (10.8s)
  ✔ globTest › ignore build resources (10.9s)
tar (child): lzip: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
gtar: /var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22ma-ipk7u5kp-1/dist/TestApp-1.1.0.tar.lz: Cannot write: Broken pipe
gtar: Error is not recoverable: exiting now
  ✖ linuxPackagerTest › tar failed with "gtar exited with code 2"
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Skip app dependencies rebuild because platform is different
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

gtar: ./content_shell.pak: file changed as we read it
gtar: ./icudtl.dat: File removed before we read it
gtar: ./libffmpeg.so: File removed before we read it
gtar: ./libnode.so: File removed before we read it
gtar: ./LICENSE: File removed before we read it
gtar: ./LICENSES.chromium.html: File removed before we read it
gtar: ./locales: File removed before we read it
gtar: ./natives_blob.bin: File removed before we read it
gtar: ./resources: File removed before we read it
gtar: ./snapshot_blob.bin: File removed before we read it
gtar: ./Test App: File removed before we read it
gtar: ./version: File removed before we read it
gtar: .: file changed as we read it
gtar: ./content_shell.pak: file changed as we read it
gtar: ./icudtl.dat: File removed before we read it
gtar: ./libffmpeg.so: File removed before we read it
gtar: ./libnode.so: File removed before we read it
gtar: ./LICENSE: File removed before we read it
gtar: ./LICENSES.chromium.html: File removed before we read it
gtar: ./locales: File removed before we read it
gtar: ./natives_blob.bin: File removed before we read it
gtar: ./resources: File removed before we read it
gtar: ./snapshot_blob.bin: File removed before we read it
gtar: ./Test App: File removed before we read it
gtar: ./version: File removed before we read it
gtar: .: file changed as we read it
Skip app dependencies rebuild because platform is different
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

  ✖ BuildTest › electron version from electron-prebuilt dependency failed with "Command failed: /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js ls --production --parseable
npm ERR! extraneous: @1.2.1 /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-8/node_modules/electron-prebuilt

/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-8
/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-8/node_modules/electron-prebuilt

npm ERR! extraneous: @1.2.1 /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron-builder-test-22m6-ipk7u5jw-8/node_modules/electron-prebuilt
"
  ✔ BuildTest › electron version from build (20.3s)
Signing app (identity: Test Test)

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating OS X zip
Signing app (identity: Test Test)

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Warning: Application icon is not set, default Electron icon will be used
Creating OS X zip
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Skip app dependencies rebuild because platform is different
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Signing app (identity: Test Test)

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Skip app dependencies rebuild because platform is different
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Creating OS X zip
  ✔ BuildTest › invalid main in the app package.json (27.1s)
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
  ✔ osxPackagerTest › only zip (27.6s)
  ✔ BuildTest › invalid main in the app package.json (no asar) (27.5s)
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to customDist/linux

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Creating OS X zip
Creating DMG
Creating OS X zip
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform linux x64 using electron 1.2.1 to dist/linux

Warning: App is not signed: CSC_LINK or CSC_NAME are not specified, and no valid identity in the keychain, see https://github.com/electron-userland/electron-builder/wiki/Code-Signing
Creating DMG
Creating OS X zip
Skip app dependencies rebuild because platform is different
Skip app dependencies rebuild because platform is different
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Skip app dependencies rebuild because dev and app dependencies are not separated
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform win32 x64 using electron 1.2.1 to dist/win-unpacked

Packaging for platform win32 x64 using electron 1.2.1 to customDist/win-unpacked

  ✔ linuxPackagerTest › deb (41s)
  ✔ linuxPackagerTest › custom configuration (41s)
  ✔ linuxPackagerTest › icons from ICNS (41s)
Signing app (identity: Test Test)

Signing app (identity: Test Test)

  ✔ osxPackagerTest › no background (1m 5.5s)
  ✔ BuildTest › www as default dir (1m 6.3s)
  ✔ osxPackagerTest › only dmg (1m 7.6s)
  ✔ osxPackagerTest › no build directory (1m 7.6s)
  ✔ linuxPackagerTest › rpm and tar.gz (1m 13.9s)
Building Squirrel.Windows installer

Building Squirrel.Windows installer

Creating Windows zip
Building NSIS installer

Building Squirrel.Windows installer

Building NSIS installer

  ✔ winPackagerTest › msi as string (1m 27.6s)
Building Squirrel.Windows installer

Building Squirrel.Windows installer

  ✔ BuildTest › main in the app package.json (no asar) (1m 28s)
  ✔ BuildTest › relative index (1m 28.2s)
  ✔ BuildTest › custom output dir (1m 28.3s)
Building Squirrel.Windows installer

Creating DMG
Creating OS X zip
Creating OS X 7z
Creating DMG
Creating OS X zip
  ✔ winPackagerTest › nsis (1m 54s)
  ✔ osxPackagerTest › two-package (2m 2.3s)
  ✔ osxPackagerTest › one-package (2m 3.3s)
  ✔ winPackagerTest › win (2m 9s)
  ✔ winPackagerTest › beta version (2m 9s)
  ✔ BuildTest › custom buildResources dir (2m 9.1s)
  ✔ BuildTest › afterPack (2m 9s)
  ✔ osxPackagerTest › mas (2m 14.6s)
  ✔ osxPackagerTest › mas and 7z (2m 17.1s)
  ✔ globTest › extraResources (2m 19.1s)
  ✔ linuxPackagerTest › targets (2m 56.2s)

  2 tests failed [22:59:37]
  2 tests skipped


  1. BuildTest › electron version from electron-prebuilt dependency
  Error: Command failed: /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js ls --production --parseable

        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:86:16
        ChildProcess.exithandler (child_process.js:220:5)
        Pipe._onclose (net.js:469:12)
    From previous event:
        Object.exec (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:72:9)
        Object.<anonymous> (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/util/filter.ts:52:29)
    From previous event:
        tsAwaiter (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/awaiter.ts:10:47)
        Object.options.initializeApp (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/platformPackager.ts:153:67)
        Object.initializeApp (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/common.js:172:19)
        Object.module.exports.createApp (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/linux.js:10:12)
        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/index.js:155:61
        ZipFile.<anonymous> (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/extract-zip/index.js:29:11)
        FdSlicer.<anonymous> (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/yauzl/index.js:182:10)
        onCloseDone (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/fd-slicer/index.js:74:12)
        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/graceful-fs/graceful-fs.js:43:10
        /Users/kunkinkan/Downloads/electron-builder/node_modules/graceful-fs/graceful-fs.js:43:10
    From previous event:
        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/index.js:155:12
        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-download/index.js:44:14
        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/path-exists/index.js:8:3
        FSReqWrap.oncomplete (fs.js:82:15)
    From previous event:
        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/index.js:141:8
    From previous event:
        createPromise (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/index.js:99:18)
        /private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/index.js:186:14
    From previous event:
        Function.pack (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-packager-tf/index.js:177:6)
        LinuxPackager.<anonymous> (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/platformPackager.ts:211:164)
    From previous event:
        tsAwaiter (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/awaiter.ts:10:47)
        Object.assertPack (/Users/kunkinkan/Downloads/electron-builder/test/src/helpers/packTester.ts:39:121)
        Test.fn (/Users/kunkinkan/Downloads/electron-builder/test/src/BuildTest.ts:132:89)
        Test._run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/test.js:97:14)
        Test.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/test.js:145:17)
        Sequence.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Concurrent._runTest (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/concurrent.js:55:20)
        Concurrent.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/concurrent.js:34:24)
        Sequence.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Sequence.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Runner.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/runner.js:199:54)
        process.<anonymous> (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/index.js:88:10)
        process.emit (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/source-map-support/source-map-support.js:415:21)
        process.<anonymous> (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/test-worker.js:116:10)
        process.emit (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/source-map-support/source-map-support.js:415:21)


  2. linuxPackagerTest › tar
  Error: gtar exited with code 2
    ChildProcess.<anonymous> (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:115:14)
    From previous event:
        Object.spawn (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/util.ts:100:9)
        Object.<anonymous> (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/targets/archive.ts:35:16)
    From previous event:
        tsAwaiter (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/electron-builder/src/awaiter.ts:10:47)
        Object.assertPack (/Users/kunkinkan/Downloads/electron-builder/test/src/helpers/packTester.ts:39:121)
        Test.fn (/Users/kunkinkan/Downloads/electron-builder/test/src/linuxPackagerTest.ts:24:44)
        Test._run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/test.js:97:14)
        Test.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/test.js:145:17)
        Sequence.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Concurrent._runTest (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/concurrent.js:55:20)
        Concurrent.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/concurrent.js:34:24)
        Sequence.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Sequence.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/sequence.js:39:30)
        Runner.run (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/runner.js:199:54)
        process.<anonymous> (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/index.js:88:10)
        process.emit (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/source-map-support/source-map-support.js:415:21)
        process.<anonymous> (/Users/kunkinkan/Downloads/electron-builder/node_modules/ava-tf/lib/test-worker.js:116:10)
        process.emit (/private/var/folders/dx/drm17f6s6c34d3dgzl_znx580000gp/T/electron_builder_published/node_modules/source-map-support/source-map-support.js:415:21)


┌─────────────────────────────────────────────────────────┐
│               ava-tf update check failed                │
│           Try running with sudo or get access           │
│          to the local update config store via           │
│ sudo chown -R $USER:$(id -gn $USER) /Users/kunkinkan/.config │
└─────────────────────────────────────────────────────────┘
Error: /Users/kunkinkan/Downloads/electron-builder/node_modules/.bin/ava exited with code 1
    at ChildProcess.<anonymous> (/Users/kunkinkan/Downloads/electron-builder/src/util.ts:115:14)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
From previous event:
    at spawn (/Users/kunkinkan/Downloads/electron-builder/src/util.ts:100:9)
    at runTests (/Users/kunkinkan/Downloads/electron-builder/test/src/helpers/runTests.ts:153:9)
    at /Users/kunkinkan/Downloads/electron-builder/test/src/helpers/runTests.ts:45:1
    at [object Generator].next (native)
    at processImmediate [as _immediateCallback] (timers.js:383:17)
From previous event:
    at tsAwaiter (/Users/kunkinkan/Downloads/electron-builder/src/awaiter.ts:10:47)
    at main (/Users/kunkinkan/Downloads/electron-builder/test/src/helpers/runTests.ts:24:1)
    at Object.<anonymous> (/Users/kunkinkan/Downloads/electron-builder/test/src/helpers/runTests.ts:47:7)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:313:12)
    at Function.Module.runMain (module.js:457:10)
    at startup (node.js:138:18)
    at node.js:974:3
npm ERR! Test failed.  See above for more details.

@develar
Copy link
Member

develar commented Jun 18, 2016

@kunkinkan Yes, test passed.

@ghost
Copy link
Author

ghost commented Jun 18, 2016

Hmm, ok I've now created a VM on my developer machine, works there too. Weird.. Sorry for wasting your time :-)

What are the things that don't yet work with NSIS? Can we customize a title in the installer? (Now all is blank except icon + progress bar).

@develar
Copy link
Member

develar commented Jun 18, 2016

Use splash for one-click installer
Remove welcome screen and add machine/user selector for boring installer
Sign uninstaller

@ghost
Copy link
Author

ghost commented Jun 18, 2016

Cool cool, is that a splash screen before the installation window shows, or is it instead of the installation window? Will we still see the progress bar or will it be like squirrel, hiding all progress? Oh, and auto-update I guess is also on that list. Thanks though, great stuff, much better than squirrel!

@develar
Copy link
Member

develar commented Jun 18, 2016

Current installation window for one-click installer contains only progress bar and nothing else. And it is a full size window — so, we should use simple splash + progress. I cannot find such nsis plugin — so, for now it will be splash + progress bar in the task bar icon. Opposite for Squirrel it will be real progress bar and splash will use real delay.

Auto update and file associations are another not yet implemented features.

@ghost
Copy link
Author

ghost commented Jun 18, 2016

Alright very cool. 1 small thing though, is it possible to put dist files in win32 / win folders similar as squirrel did? I need to copy the exes programatically and this makes it easy to differentiate the architecture.

@develar
Copy link
Member

develar commented Jun 18, 2016

If you need to distribute both arch — nsis allows you pack both into one installer and solid LZMA compression will keep installer size small. It is not yet supported — file issue if need. It will be the only recommended way because it is better for end user — avoid choose type of installer. And it is another reason why nsis is better than squirrel.

@McPo
Copy link
Contributor

McPo commented Dec 8, 2016

@develar I believe this issue should be reopened its the same issue that @ineghi, @Avien (#850) and I, are still having.

I noticed the issue when code-signing a NSIS build. It works perfectly fine on my Macbook Air (El Capitan), but am seeing issues on an old Mac Mini running Jenkins (Yosemite)

@McPo
Copy link
Contributor

McPo commented Dec 9, 2016

So to add to this issue.

Building on the Mac Mini by screen sharing into it and cd-ing to the Jenkins workspace, works perfectly fine. The binaries are signed and all.

Building through clicking the 'Build Now' button on Jenkins, still throws the exception.

@develar
Copy link
Member

develar commented Dec 9, 2016

@McPo Please see Maybe "I solved the problem related to NSIS. Was caused by disk permissions errors..." #850 (comment)

I cannot reproduce and, so, cannot fix it. PR is welcome.

@McPo
Copy link
Contributor

McPo commented Dec 12, 2016

So I finally figured out what the issue was. It was caused by encoding.

https://sourceforge.net/p/nsis/bugs/1165/

Modyfing the generated script which is piped into stdin to state Unicode false, works.

I also discovered the reason why it worked in SSH-ing into the builder server vs Jenkins.

When SSH-ing into the builder server and typing locale.

LANG="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_CTYPE="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_ALL=

When making Jenkins run locale.

LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

So the solution for me was to change the environment variables within Jenkins to match the ones which exist when SSH-ing.

Apparently this is a well known issue http://unix.stackexchange.com/questions/164779/jenkins-does-not-use-systems-locales

@develar
Copy link
Member

develar commented Dec 13, 2016

@McPo You are hero :) So, electron-builder should explicitly set this env vars for spawned process?

@McPo
Copy link
Contributor

McPo commented Dec 13, 2016

Well.....

Ultimately I think this issue is with makensis.

However Id proposed checking the value of LANG, and depending on its value disable/enabling Unicode support, and print a warning stating unicode support has been disabled.

Im not sure if changing LANG is appropriate (I genuinely don't know, as encoding issues and the LANG variable isnt something Ive had much experience with, so it might be OK, I wouldn't know).

@Avien
Copy link

Avien commented Dec 27, 2016

@McPo Your locale solution works for me!
Thanks

@develar
Copy link
Member

develar commented Apr 15, 2017

@McPo Thanks again. Your fix will be included into the electron-builder. Because now it doesn't work even on my local dev macOS.

If LC_CTYPE is empty, NSIS failed.

@develar
Copy link
Member

develar commented Apr 15, 2017

en_DE.UTF-8 also leads to error. Now (17.0.0) we will set it to en_US.UTF-8 in any case.

@sredna
Copy link

sredna commented Oct 13, 2018

If LC_CTYPE is empty, NSIS failed.

@develar How does makensis fail? Error message?

makensis uses the current locale when dealing with command line parameters and the filesystem on the local machine (and probably a couple of other places). It does not really care what the locale is but your input data needs to be able to be converted to wchar_t with mbsrtowcs etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@sredna @develar @McPo @Avien and others