Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

npm run dist:mac fails #866

Closed
slaweet opened this issue Oct 13, 2017 · 0 comments
Closed

npm run dist:mac fails #866

slaweet opened this issue Oct 13, 2017 · 0 comments
Assignees

Comments

@slaweet
Copy link
Contributor

slaweet commented Oct 13, 2017

Expected behaviour

npm run dist:mac

should build Lisk Nano package for MacOS

Actual behaviour

npm run dist:mac

> [email protected] dist:mac /Users/slaweet/git/lisk-nano
> build --mac

electron-builder 19.32.2
No native production dependencies
Packaging for darwin x64 using electron 1.7.8 to dist/mac
Error: Application entry file "dist/main.js" in the "/Users/slaweet/git/lisk-nano/dist/mac/Lisk Nano.app/Contents/Resources/app.asar" does not exist. Seems like a wrong configuration.
    at error (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/util/asarUtil.ts:246:12)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/util/asarUtil.ts:272:11
    at Generator.next (<anonymous>)
    at /Users/slaweet/git/lisk-nano/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:114:15)
From previous event:
    at checkFileInArchive (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/util/asarUtil.js:52:22)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/platformPackager.ts:305:13
    at Generator.next (<anonymous>)
From previous event:
    at MacPackager.checkFileInPackage (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/platformPackager.js:374:11)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/platformPackager.ts:353:16
    at Generator.next (<anonymous>)
    at /Users/slaweet/git/lisk-nano/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:114:15)
From previous event:
    at MacPackager.sanityCheckPackage (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/platformPackager.js:392:11)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/platformPackager.ts:198:16
    at Generator.next (<anonymous>)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)
From previous event:
    at MacPackager.doPack (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/platformPackager.js:252:11)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/macPackager.ts:87:71
    at Generator.next (<anonymous>)
From previous event:
    at MacPackager.pack (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/macPackager.js:183:11)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/packager.ts:260:24
From previous event:
    at Packager.doBuild (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/packager.js:344:11)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/packager.ts:186:52
    at Generator.next (<anonymous>)
From previous event:
    at Packager.build (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/packager.js:263:11)
    at /Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/builder.ts:283:40
    at Generator.next (<anonymous>)
    at build (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/builder.js:63:21)
    at loadEnv.then (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/src/cli/cli.ts:49:4)
From previous event:
    at build (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/builder.js:63:21)
    at loadEnv.then (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/cli/cli.js:155:79)
    at runCallback (timers.js:651:20)
    at tryOnImmediate (timers.js:624:5)
    at processImmediate [as _immediateCallback] (timers.js:596:5)
From previous event:
    at Object.args [as handler] (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/cli/cli.js:155:68)
    at Object.runCommand (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/node_modules/yargs/lib/command.js:226:22)
    at Object.parseArgs [as _parseArgs] (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/node_modules/yargs/yargs.js:998:24)
    at Object.get [as argv] (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/node_modules/yargs/yargs.js:912:21)
    at Object.<anonymous> (/Users/slaweet/git/lisk-nano/node_modules/electron-builder/out/cli/cli.js:151:418)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10)
    at run (bootstrap_node.js:422:7)
    at startup (bootstrap_node.js:143:9)
    at bootstrap_node.js:537:3

Steps to reproduce

Run

npm run dist:mac
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant