Search code examples
packagingelectron

electron packager not packaging darwin version correctly


I am trying to package my app with electron-packager. For a start , running my electron works fine and easy with the

electron .

I then install electron-packager and attempted to package with my command belwo

electron-packager . app --out ./electron --platform=darwin --arch=x64 --version=0.35.0 --overwrite

It packaged only 3 files in my folder. The app, the licence and the version files. When i click the app, it throws error cannot find module .../...electron.js. When i change my command to

electron-packager . app --out ./electron --platform=win32 --arch=x64 --version=0.35.0 --overwrite

it works fine and packaged with all the folders and files i was expecting. I tried everything possible yet couldn't get it to package the darwin version with the resource folders and necessary files. It is failing as a result. Please what causes this and how do i resolved it please? Any help would be appreciated.

Note: I am running OSX ELCAPITAN version 10.11.4 on my machine.


Solution

  • Why are you trying to package it on version 0.35, have you tried to package a newer version? Try that.