-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathbuild.sh
executable file
·16 lines (16 loc) · 975 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# We are getting GLIBC errors, and
# we should remove our dependency on CGO
CGO_ENABLED=0
GOHOSTARCH=amd64
GOHOSTOS=linux
GOOS=linux
GOARCH=arm GOARM=6 go build -tags=arm -o=build/node-install-armv6l main.go; # builds with arm .go file
GOARCH=arm GOARM=7 go build -tags=arm -o=build/node-install-armv7l main.go; # builds with arm .go file
GOARCH=arm64 go build -o=build/node-install-arm64 main.go; # builds with x64 .go file
GOARCH=amd64 go build -o=build/node-install-x86_64 main.go; # builds with x64 .go file
sha256sum build/node-install-arm64 | awk '{print $1}' > build/sha256-node-install-arm64.checksum
sha256sum build/node-install-armv6l | awk '{print $1}' > build/sha256-node-install-armv6l.checksum
sha256sum build/node-install-armv7l | awk '{print $1}' > build/sha256-node-install-armv7l.checksum
sha256sum build/node-install-x86_64 | awk '{print $1}' > build/sha256-node-install-x86_64.checksum
# scp build/node-install-armv7l [email protected]:/home/pi