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
/root/app/dist
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
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:
- Created 6 years ago
- Comments:11 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Bug:
!dist{,/**/*}
is added, but it is incorrect in case of “Two package.json structure is used”.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.