First of all, thanks for your work on your tools suite.
I'm struggling with the bundler as I'm trying to bundle my app that is (on the Go part) reading an external JSON file to get some configuration.
The bundler successfully bundles my app, but I unfortunately can't run it - it's closing straight after I open it.
When running it via CLI, I indeed have an error related to my missing configuration (conf.json file that should be located in a config/ folder at the root of my app) :
panic: Could not read the configuration file : Config File "conf" Not Found in "[/Users/meuhmeuh/Projects/go/src/github.com/xxx/output/darwin-amd64/xxx.app/Contents/MacOS/config]"
goroutine 1 [running]:
main.main()
/Users/meuhmeuh/Projects/go/src/github.com/xxx/main.go:18 +0x206
Do you know how I could embed this configuration file within the app in some way? The only solution that I could see from my perspective would be to embed the json configuration file on the electron app's side and to send it to the Go backend, but I'm not sure if it's that sexy.
Hello,
First of all, thanks for your work on your tools suite.
I'm struggling with the bundler as I'm trying to bundle my app that is (on the Go part) reading an external JSON file to get some configuration.
The bundler successfully bundles my app, but I unfortunately can't run it - it's closing straight after I open it. When running it via CLI, I indeed have an error related to my missing configuration (
conf.json
file that should be located in aconfig/
folder at the root of my app) :Do you know how I could embed this configuration file within the app in some way? The only solution that I could see from my perspective would be to embed the
json
configuration file on the electron app's side and to send it to the Go backend, but I'm not sure if it's that sexy.Thanks !