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.

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:closed
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
abhijithcscommented, May 5, 2018

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.

0reactions
ecrofpucommented, Dec 3, 2020

image

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.

Read more comments on GitHub >

github_iconTop 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 >

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