asticode / go-astilectron-demo

Discover the power of Astilectron through a demo app
MIT License
404 stars 83 forks source link

Unable to bundle : functions redreclared in bind.go and bind_windows_amd64.go #36

Closed chninkel closed 6 years ago

chninkel commented 6 years ago

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

chninkel commented 6 years ago

Sorry for the typo in the title

chninkel commented 6 years ago

seems to work when deleting build.go

asticode commented 6 years ago

@chninkel as mentionned in the README's first step, you need to delete build.go indeed.