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.

Not all files in /app are packaged

See original GitHub issue
  • Version: 19.20.1
  • Target: win

This is my app folder that should be being packaged:

/root/app image

/root/app/dist image

When I turn off asar packaging, and run the command build --win --x64 --ia32 --dir, it appears that not all files are packaged up. This is what the dist directory looks like:

/root/dist/win-unpacked/resources/app image

So basically, it’s missing the dist folder.

Has something changed in electron-builder since v18.6.2 that may have caused this? Up until recently, this hasn’t seemed to be a problem.

There’s nothing crazy going on in the development/project package.json as far as I’m concerned, but here are the relevant parts in any case:

"build": {
  "appId": "myapp",
  "asar": false, 
  "artifactName": "${name}_${os}_${arch}-setup.${ext}",
  "mac": {
    "category": "public.app-category.business"
  },
  "nsis": {},
  "publish": [
    {
      "provider": "generic",
      "url": "http://myapp.com/downloads"
    }
  ]
}

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
develarcommented, Aug 11, 2017

Bug: !dist{,/**/*} is added, but it is incorrect in case of “Two package.json structure is used”.

3reactions
ajbeavencommented, Aug 11, 2017

So it excludes any subfolder in the output directory that matches the output directory’s name? This seems nonsensical, is undocumented and should be considered a bug in my opinion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

App Package does not include all files - Visual Studio Feedback
I've added a file to my main project, and set the Content property for that file to true, but the file is not...
Read more >
Azure publish package not including all files - Stack Overflow
The files are set as Content and Copy Always. When I debug the project locally, all works fine, the problem is when I...
Read more >
always use this app to open .package files
I accidentally clicked that I want to open internet explorer with my .package files and now I don't know how to remove it....
Read more >
Manage all files on a storage device - Android Developers
Request All files access; Operations that MANAGE_EXTERNAL_STORAGE allows; Invoke another app's storage management activity; Enable MANAGE_EXTERNAL_STORAGE ...
Read more >
Use of All files access (MANAGE_EXTERNAL_STORAGE ...
If your app does not require access to the MANAGE_EXTERNAL_STORAGE permission, you must remove it from your app's manifest in order to successfully...
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