asticode / go-astilectron-demo

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

bundling failed #2

Closed deepch closed 7 years ago

deepch commented 7 years ago

For a long time I was not but I came back. And found a lot has changed.

i can build {"arch": "amd64", "os": "windows"}

and build {"arch": "i386", "os": "windows"} error

my os mac os 10.12.6

DEBU[0014] Binding data DEBU[0014] Removing /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/vendor DEBU[0014] Creating /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/vendor DEBU[0014] /var/folders/vp/706x_4j922qghd8dsv0t1cj80000gn/T/astibundler/astilectron-0.8.0.zip already exists, skipping download of https://github.com/asticode/astilectron/archive/v0.8.0.zip DEBU[0014] Copying /var/folders/vp/706x_4j922qghd8dsv0t1cj80000gn/T/astibundler/astilectron-0.8.0.zip to /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/vendor/astilectron.zip DEBU[0014] /var/folders/vp/706x_4j922qghd8dsv0t1cj80000gn/T/astibundler/electron-windows-i386-1.6.5.zip already exists, skipping download of https://github.com/electron/electron/releases/download/v1.6.5/electron-v1.6.5-win32-ia32.zip DEBU[0014] Copying /var/folders/vp/706x_4j922qghd8dsv0t1cj80000gn/T/astibundler/electron-windows-i386-1.6.5.zip to /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/vendor/electron.zip DEBU[0018] Running rsrc for icon /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/resources/gopher.ico into /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/windows.syso FATA[0018] bundling failed: bundling for environment windows/i386 failed: adding windows .syso failed: running rsrc for icon /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/resources/gopher.ico into /Users/deepweb/Desktop/work/ ipeye/onvif/src/github.com/deepch/onvif/windows.syso failed: coff: unknown architecture: i386

asticode commented 7 years ago

@deepch indeed, this is a documentation error, my bad :(

The i386 architecture doesn't exist. You have to replace i386 by 386.

I've updated the README.

Does it fix your issue?

deepch commented 7 years ago

thx it work

DEBU[0028] Executing go build -ldflags -X "main.AppName=onvif" -X "main.BuiltAt=2017-09-06 18:27:56.864261144 +0300 MSK m=+28.281013585" -H windowsgui -o /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/output/windows-amd64/bina ry github.com/deepch/onvif DEBU[0042] Moving /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/output/windows-amd64/binary to /Users/deepweb/Desktop/work/ipeye/onvif/src/github.com/deepch/onvif/output/windows-amd64/onvif.exe

closed