#how to add specific folder to generated exe
1 messages · Page 1 of 1 (latest)
with absolute or relative path
how
with ..
beacause i have api to save all image in the specific folder and i want to acces to this images directly
but i cant configure it in electron
and electron not let me to specify folder to install it
i want to add other folder outside app andd acces it directly from front
you can access it by absolute path
you can explain because with absolute path i cant
Do you know what absolute path is?
You can make a folder named static outside the src folder, add any file (eg icon.ico) there and then use path.join(__static, "icon.ico") to get the path. You'll have to import path like this: import * as path from "path";
This is my folder structure. I use electron builder to package my app