Building bridge from source

Hi,

I'm trying to build the agent from source and I'm getting an error.
I used mingw64.
This is the error after I built it:

panic: Failed to load C:\Users\Owner\AppData\Roaming\systray\systray.dll: %1 is
not a valid Win32 application.

goroutine 1 [running, locked to thread]:
panic(0x9366a0, 0xc042139650)
        C:/Go/src/runtime/panic.go:500 +0x1af
syscall.(*LazyProc).mustFind(0xc042139080)
        C:/Go/src/syscall/dll_windows.go:282 +0x71
syscall.(*LazyProc).Call(0xc042139080, 0xc04211f9b0, 0x2, 0x2, 0x653e6c, 0x471c1
0, 0xc04207deb8, 0xc04207dec0)
        C:/Go/src/syscall/dll_windows.go:303 +0x36
github.com/facchinm/systray.nativeLoop()
        C:/Users/Owner/Desktop/arduino-create-agent-devel/arduino-create-agent-d
evel/src/github.com/facchinm/systray/systray_windows.go:49 +0xc1
github.com/facchinm/systray.Run(0xa43300)
        C:/Users/Owner/Desktop/arduino-create-agent-devel/arduino-create-agent-d
evel/src/github.com/facchinm/systray/systray.go:56 +0xc1
main.setupSysTray()
        C:/Users/Owner/Desktop/arduino-create-agent-devel/arduino-create-agent-d
evel/trayicon.go:48 +0xd2
main.main()
        C:/Users/Owner/Desktop/arduino-create-agent-devel/arduino-create-agent-d
evel/main.go:275 +0x4a

Any idea on what went wrong?

Double check your antivirus is set to exclude the Arduino stuff for now and see if that helps.

Also could you try Run As Administrator

Nah. none of this worked, but I did manage to build it fine.
I was using the wrong gcc toolchain I guess and also needed to use the compile_webidebridge.sh instead of go build command.
It needs i686-w64-mingw32-gcc instead.
I was able to build and the new compiled exe accepted my connection and convert the HTTP to WS just fine, so everything looks good.
Before I was getting a CORS violation using the Arduino released version, because CORS only allows connections from create.arduino.cc
I just need to see how to communicate and do the other stuff now.