asticode / go-astilectron-bundler

Bundle your Astilectron app with ease
MIT License
127 stars 67 forks source link

How to get the path to the directory containing resources and vendor directories #25

Closed ShawnLin013 closed 6 years ago

ShawnLin013 commented 6 years ago

It seems that resources/app/static/{My Folder} is missing after bundle at the latest version. Is there any solution to the issue? 😄 Thanks

asticode commented 6 years ago

@ShawnLin013 this is weird, you should get your folder. Which OS are you using ? Can you paste the logs you get when executing the bundler and your app both with the -v flags ?

ShawnLin013 commented 6 years ago

@asticode I found the resources folder is changed to AppData/Roaming/{My App}/resources. How to get the path of the resources folder? Thank you for your prompt reply!

asticode commented 6 years ago

The directory containing both resources and vendor directories is called data directory and you can get its path with a.Paths().DataDirectory() if a is your *astilectron.Astilectron.

I realize this information is not present in the doc. If you have any idea where I can add it so that people can find it easily let me know.

ShawnLin013 commented 6 years ago

Finally, I got the files of the resource directory with *astilectron.Astilectron. Thank you again for your time! Maybe you can put this information to README.md