Unable to bundle : functions redreclared in bind.go and bind_windows_amd64.go
chninkel opened this issue · comments
Hello
when I try to bundle the demo everything's fine except this error :
{"level":"fatal","msg":"bundling failed: bundling for environment windows/amd64 failed: building failed: # github.com/asticode/go-astilectron-demo
.\bind_windows_amd64.go:537:34: Asset redeclared in this block\n\tprevious declaration at .\bind.go:3:34
.\bind_windows_amd64.go:623:39: AssetDir redeclared in this block
\tprevious declaration at .\bind.go:7:39
.\bind_windows_amd64.go:728:38: RestoreAssets redeclared in this block
\tprevious declaration at .\bind.go:11:38
: exit status 2","time":"2018-07-18T15:07:12+02:00"}
Here's my bundle.json :
{
"app_name": "Astilectron demo",
"icon_path_windows": "resources/icon.ico",
"environments": [
{ "arch": "amd64", "os": "windows" }
]
}
THX
Sorry for the typo in the title
seems to work when deleting build.go
@chninkel as mentionned in the README's first step, you need to delete build.go
indeed.