SR-G / sleep-on-lan

Multi-platform process allowing to sleep on LAN a linux or windows computer, through wake-on-lan (reversed) magic packets or through HTTP REST requests.
Apache License 2.0
332 stars 25 forks source link

Build binaries for x86 architecture #55

Closed pierdom closed 11 months ago

pierdom commented 11 months ago

Thank your for this great project. I have it running on an x86_64 machine, but I would also like to use it on an older Synology NAS with Intel x86 CPU.

I noticed the snapshots do not include linux x86 and I don't have an x86 machine to compile it on (besides the NAS itself, but getting golang to work there would be close to impossible).

In short: could you please add support for linux x86? Thank you again.

SR-G commented 11 months ago

Hello. You should now see it in this pre-release : https://github.com/SR-G/sleep-on-lan/releases (1.1.2-SNAPSHOT) I have no LINUX/i386 box anymore so can't test, but it should work.

By the way and just FYI, you could have cross-compiled on your side just with (this is exactly what i'm doing anyway : generating all the binaries for all operating systems from one same linux platform, per the golang cross-compilation capacities) :

GOARCH=386 GOOS=linux go install -a -tags netgo -installsuffix netgo sleep-on-lan

And :

file linux_386/sol
linux_386/sol: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, Go BuildID=Rkov5rEJ__BkyVAAzu04/T9i6bmMb5KYweO7xXwDT/AndjS-YUiJI47n8cVsL6/e-v02AP-bPUyU1HGj2SZ, stripped