Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Empty result in MAC OS on m1 processor #69

Open
neomen opened this issue Aug 31, 2021 · 1 comment
Open

Empty result in MAC OS on m1 processor #69

neomen opened this issue Aug 31, 2021 · 1 comment

Comments

@neomen
Copy link

neomen commented Aug 31, 2021

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
@asticode
Copy link
Owner

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 🤔

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants