question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Electron builder failing on dmg

See original GitHub issue
  • Version: ^20.38.5
  • Electron Version:^4.0.6
  • Electron Type (current, beta, nightly):current

^4.3.5

  • Target: dmg

I was told to try and ask here but ive been at a loss and keep getting this error with no hope of fixing it. There is
`Error: Exit code: 2. Command failed: /usr/bin/perl /private/tmp/t-fuQapm/1-dmgProperties.pl Can’t locate Mac/Finder/DSStore.pm in @INC (you may need to install the Mac::Finder::DSStore module) (@INC contains: /Library/Perl/5.28/darwin-thread-multi-2level /Library/Perl/5.28 /Network/Library/Perl/5.28/darwin-thread-multi-2level /Network/Library/Perl/5.28 /Library/Perl/Updates/5.28.2 /System/Library/Perl/5.28/darwin-thread-multi-2level /System/Library/Perl/5.28 /System/Library/Perl/Extras/5.28/darwin-thread-multi-2level /System/Library/Perl/Extras/5.28) at /private/tmp/t-fuQapm/1-dmgProperties.pl line 3. BEGIN failed–compilation aborted at /private/tmp/t-fuQapm/1-dmgProperties.pl line 3.

Can’t locate Mac/Finder/DSStore.pm in @INC (you may need to install the Mac::Finder::DSStore module) (@INC contains: /Library/Perl/5.28/darwin-thread-multi-2level /Library/Perl/5.28 /Network/Library/Perl/5.28/darwin-thread-multi-2level /Network/Library/Perl/5.28 /Library/Perl/Updates/5.28.2 /System/Library/Perl/5.28/darwin-thread-multi-2level /System/Library/Perl/5.28 /System/Library/Perl/Extras/5.28/darwin-thread-multi-2level /System/Library/Perl/Extras/5.28) at /private/tmp/t-fuQapm/1-dmgProperties.pl line 3. BEGIN failed–compilation aborted at /private/tmp/t-fuQapm/1-dmgProperties.pl line 3.

at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/builder-util/src/util.ts:126:16
at ChildProcess.exithandler (child_process.js:315:5)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Socket.<anonymous> (internal/child_process.js:439:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:673:12)

From previous event: at _applyProperties (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/out/dmgUtil.js:179:27) at applyProperties (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/out/dmgUtil.js:166:27) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/src/dmg.ts:307:9 From previous event: at _customizeDmg (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/out/dmg.js:458:24) at customizeDmg (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/out/dmg.js:402:24) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/src/dmg.ts:48:54 at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/src/dmgUtil.ts:37:31 From previous event: at _attachAndExecute (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/out/dmgUtil.js:120:28) at attachAndExecute (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/out/dmgUtil.js:97:28) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/src/dmg.ts:48:16 at Generator.next (<anonymous>) From previous event: at DmgTarget.build (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/dmg-builder/src/dmg.ts:21:42) at Function.buildAsyncTargets (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/platformPackager.ts:140:36) at MacPackager.packageInDistributableFormat (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/platformPackager.ts:119:24) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/macPackager.ts:91:26 at processImmediate (internal/timers.js:461:21) From previous event: at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/macPackager.ts:91:10 at Generator.next (<anonymous>) From previous event: at MacPackager.pack (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/macPackager.ts:82:95) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/packager.ts:430:24 at Generator.next (<anonymous>) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/fs-extra-p/node_modules/fs-extra/lib/mkdirs/mkdirs.js:56:16 at callback (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/graceful-fs/polyfills.js:295:20) at FSReqCallback.oncomplete (fs.js:184:5) From previous event: at Packager.doBuild (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/packager.ts:396:24) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/packager.ts:366:57 at Generator.next (<anonymous>) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/graceful-fs/graceful-fs.js:144:16 at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/graceful-fs/graceful-fs.js:61:14 at FSReqCallback.oncomplete (fs.js:171:23) From previous event: at Packager._build (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/packager.ts:335:133) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/packager.ts:331:23 at Generator.next (<anonymous>) at processImmediate (internal/timers.js:461:21) From previous event: at Packager.build (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/packager.ts:288:14) at build (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/app-builder-lib/src/index.ts:59:28) at build (/Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/electron-builder/src/builder.ts:228:10) at /Users/caimartin/Desktop/Syqel/radio-desktop/node_modules/electron-builder/src/cli/cli.ts:49:19`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
yoavshalevcommented, May 1, 2021

Hi @mmaietta - curious if you had an updated ETA on this?

0reactions
CaiIsProgrammercommented, Apr 23, 2021

@develar Hey i dont see the new update yet on github is it updated on npm?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Packaging for DMG throws an module-not-found error #6471
Downgrade to electron-builder v22.13.1 and I got the same error about the missing cli-truncate package ...
Read more >
electron-builder error: Cannot find module 'dmg-license'
I have tried to install the dependency but it can be installed only on macOS... I have also tried to install different versions,...
Read more >
electron-builder failing in macOS : r/electronjs - Reddit
Hello, I am having trouble building a production build for my electron app using electron-builder in macOS with a dmg target.
Read more >
DMG - electron-builder
Defaults to #ffffff (white) if no background image. icon String | “undefined” - The path to DMG icon (volume icon), which will be...
Read more >
dmg-builder | Yarn - Package Manager
Utilities to build DMG. Used by electron-builder. changelog. (2022-12-10). Features.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found