Strange behavior when configuring the default path
hitakiri opened this issue · comments
For example: code
if compile it whith bundler , the path for index.html in win7 is: file:///C:/Users/User/AppData/Roaming/AstorExample/resources/app/index.html
if i change params:
Homepage: "./index.html"
or
BaseDirectoryPath: "./"
Nothing changes.
How do I change the path configuration if I use go-astilectron-bootstrap ?
The logic that computes the data directory path is here. As you can see, in windows7 there's an APPDATA
environment variable that takes precedence over BaseDirectoryPath
so this is normal that BaseDirectoryPath: "./"
doesn't change anything.
I don't recommend setting a manual path when using the bundler (except when testing stuff) but if you really need it, use the DataDirectoryPath option. You Homepage
should stay index.html
Thank you for clarification.