go-astilectron-demo
go-astilectron-demo copied to clipboard
Empty result in MAC OS on m1 processor
On the MAC OS m1 the arm CPU I've this result, what am I doing wrong?
➜ go-astilectron-demo-master astilectron-bundler
2021/08/31 08:34:34 Bundling for environment darwin/amd64
2021/08/31 08:34:34 Binding data
2021/08/31 08:34:34 Removing /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/bind
2021/08/31 08:34:34 Creating /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/bind
2021/08/31 08:34:34 Creating /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/bind/vendor_astilectron_bundler
2021/08/31 08:34:34 Creating /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/cache
2021/08/31 08:34:34 /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/cache/astilectron-0.48.0.zip already exists, skipping download of https://github.com/asticode/astilectron/archive/v0.48.0.zip
2021/08/31 08:34:34 Copying /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/cache/astilectron-0.48.0.zip to /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/bind/vendor_astilectron_bundler/astilectron.zip
2021/08/31 08:34:34 /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/cache/electron-darwin-amd64-11.4.3.zip already exists, skipping download of https://github.com/electron/electron/releases/download/v11.4.3/electron-v11.4.3-darwin-x64.zip
2021/08/31 08:34:34 Copying /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/cache/electron-darwin-amd64-11.4.3.zip to /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/bind/vendor_astilectron_bundler/electron.zip
2021/08/31 08:34:34 Creating /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/bind/resources
2021/08/31 08:34:34 Copying /Users/blablauser/home work/go-astilectron-demo-master/resources to /var/folders/7t/5yfs_lhx23g2r7r1tj33gjqm0000gn/T/astibundler/bind/resources
2021/08/31 08:34:35 Generating /Users/blablauser/home work/go-astilectron-demo-master/bind_darwin_amd64.go
2021/08/31 08:34:37 Removing /Users/blablauser/home work/go-astilectron-demo-master/output/darwin-amd64
2021/08/31 08:34:37 Creating /Users/blablauser/home work/go-astilectron-demo-master/output/darwin-amd64
2021/08/31 08:34:37 Building for os darwin and arch amd64 astilectron: 0.48.0 electron: 11.4.3
2021/08/31 08:34:37 Executing go build -ldflags -X "main.AppName=Astilectron demo" -X "main.BuiltAt=2021-08-31 08:34:37.000293 +0600 +06 m=+2.092456251" -X "main.VersionAstilectron=0.48.0" -X "main.VersionElectron=11.4.3" -o /Users/blablauser/home work/go-astilectron-demo-master/output/darwin-amd64/binary .
2021/08/31 08:34:43 bundling failed: bundling for environment `darwin/amd64` failed: building failed: # github.com/asticode/go-astilectron-demo
./bind_darwin_amd64.go:537:6: Asset redeclared in this block
previous declaration at ./bind.go:3:34
./bind_darwin_amd64.go:623:6: AssetDir redeclared in this block
previous declaration at ./bind.go:7:39
./bind_darwin_amd64.go:728:6: RestoreAssets redeclared in this block
previous declaration at ./bind.go:11:38
➜ go-astilectron-demo-master
➜ go-astilectron-demo-master go version
go version go1.16.2 darwin/arm64
As mentioned in the first step of the README, you need to remove the bind.go
file located in the root folder of the demo project. If you didn't forget, the command line in the README may be wrong 🤔