You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
471 B
20 lines
471 B
7 years ago
|
#!/bin/bash -
|
||
|
#
|
||
|
|
||
|
set -e
|
||
|
|
||
|
TARGET=build_tmp/src/github.com/codeskyblue/gosuv
|
||
|
HOST="pi3-0"
|
||
|
ssh pi@$HOST mkdir -p $TARGET
|
||
|
|
||
|
rsync -avz -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress \
|
||
|
--exclude gosuv --exclude dist --exclude .git \
|
||
|
--delete \
|
||
|
. pi@$HOST:$TARGET
|
||
|
|
||
|
echo "Build remotely ..."
|
||
|
ssh pi@$HOST bash $TARGET/build_standalone.sh
|
||
|
echo "Build finished, copying ..."
|
||
|
scp pi@$HOST:$TARGET/gosuv ./dist/gosuv-linux-arm
|
||
|
echo "All finished"
|