Skip to content

How to bundle the json files that lowdb or node-json-db depends on? #27

Answered by robertsLando
awdr74100 asked this question in Q&A
Discussion options

You must be logged in to vote

@awdr74100 If you need to read/write a file you need to have it outside the bundle. The alternative is to bundle it inside the exe, check if it's present in a defined "storage" directory by your choice and if not copy it there so you can read/write it as you prefer

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by awdr74100
Comment options

You must be logged in to vote
1 reply
@robertsLando
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants