ssut / payload-dumper-go

an android OTA payload dumper written in Go
Apache License 2.0
2.37k stars 201 forks source link

Linux Binary in releases? #1

Closed derjohn closed 3 years ago

derjohn commented 3 years ago

Could you also publish a linux binary, pls?

toastie89 commented 3 years ago

Hi @derjohn , in case you're using Docker, you might want to look into my pull request #2.

osm0sis commented 3 years ago
# install latest Go (currently 1.16.2) to /usr/local/go per the Linux instructions at https://golang.org/doc/install
export PATH=$PATH:/usr/local/go/bin

git clone https://github.com/ssut/payload-dumper-go
cd payload-dumper-go

apt-get install liblzma-dev

GOOS=linux GOARCH=386 CGO_ENABLED=1 CC=i686-linux-gnu-gcc go build -a -ldflags '-extldflags "-static -s -w"'

That got me the following: payload-dumper-go_1.0.1_linux_386.zip