asticode / go-astilectron-bundler

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

Appears to be missing access to resources #87

Closed JRascagneres closed 3 years ago

JRascagneres commented 3 years ago

Looks like my app is unable to access my resources folder. Following the build I get this error in my web tools console:

Not allowed to load local resource: file:///D:/Documents/Programming/MSFS2020/pkg/client_ui/output/windows-amd64/pkg/client_ui/ui/resources/app/index.html

file:///D:/Documents/Programming/MSFS2020/pkg/client_ui is where my main.go is and my resource folder is indeed in file:///D:/Documents/Programming/MSFS2020/pkg/client_ui/ui/resources. My bundler.json is very simple as follows:

I build from the location D:\Documents\Programming\MSFS2020\pkg\client_ui

{
  "app_name": "Astilectron demo",
  "resources_path": "ui/resources"
}

Wondering if I've done something wrong? It seems to suggest that the pkg file generated when first running my exe should product the ui folder however it only produces the vendor folder.