asticode / go-astilectron-demo

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

FATA[0003] bundling failed: bundling for environment windows/386 failed: building failed: go: cannot find GOROOT directory: c:\go : exit status 2 #15

Closed ghost closed 6 years ago

ghost commented 6 years ago

FATA[0003] bundling failed: bundling for environment windows/386 failed: building failed: go: cannot find GOROOT directory: c:\go : exit status 2

I do set GOROOT, and it's not c:\go

asticode commented 6 years ago

@di3663 can you paste here what you get when you execute go env ?

ghost commented 6 years ago

/d/TOOL/Z/Desktop # go env set GOARCH=386 set GOBIN= set GOEXE=.exe set GOHOSTARCH=386 set GOHOSTOS=windows set GOOS=windows set GOPATH=D:\TOOL\Z.gopath\ set GORACE= set GOROOT=D:\TOOL\go set GOTOOLDIR=D:\TOOL\go\pkg\tool\windows_386 set GCCGO=gccgo set GO386=sse2 set CC=gcc set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\Z\AppData\Local\Temp\go-build720462579=/tmp/go-build -gno-record-gcc-switches set CXX=g++ set CGO_ENABLED=1 set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config

ghost commented 6 years ago

I use go with msys2

asticode commented 6 years ago

@di3663 I've added the GOROOT environment variable in the bundler process, that may be the cause of your issue.

Can you go get the bundler, run make (or go install ./astilectron-bundler if it doesn't work), try again and let me know if that fixes your issue?

ghost commented 6 years ago

@asticode works now.