How to add custom file to the app folder after build before package.
See original GitHub issue- Version: electron-builder 19.19.1
I’m using electron-builder to package my app into deb file.
Now I need to add some native lib to app installation root folder manually (such as xxxx.so) on linux platform.
because app got error GLIBCXX_3.4.21 not found
in some pc with ubuntu14.04 sometimes.
and putting higher version libstdc++.so
to app’s root folder can solve the problem.
I checked the docs and didn’t find the solution. So if anyone can give me some advice? Thank you.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
How to include custom files with angular-cli build?
The "assets" property of angular-cli.json can be configured to include custom files in angular-cli webpack build. So, configure "assets" property value as ...
Read more >Visual Studio: Copying files to Debug or Release folder
If the file in the build folder is needed then first, create a copy of the file before changing Copy to Output Directory...
Read more >How to install files in a custom folder - Advanced Installer
1. Install in the "C:\" folder ... When installing an application you may, need to install some files directly on the C: drive....
Read more >Workspace and project file structure - Angular
The workspace root folder contains various support and configuration files, and a README file with generated descriptive text that you can customize.
Read more >Create and edit run/debug configurations - Android Developers
After you save it, you can select the configuration from the Select Run/Debug Configuration ... you can select it before you run or...
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
Could anyone suggest a solution for this:
I have to include a whole directory which contains JSON files which contains data relevant to the App. App uses the data from this directory. While building this directory (which is in the root project directory) is not being included.
I am also facing a similar issue. I have a .bat file that I have to execute when some setting in the Electron app is turned on. I am targeting Windows 10. But every time a build is created, it gives me error regarding the bat file not found.
You can see a part of the package.json in the above image. I have used the extraFiles attribute to inform the builder to include the vendor folder, this folder includes the .bat file. The vendor folder is stored in the root directory i.e., same as package.json directory.
I have also tried setting asar false, but this also did not work.
Any suggestion or advice is appreciated.