2020-03-02 21:50:04 +08:00

14 lines
301 B
Bash

#!/usr/bin/env bash
cd ..
git pull
platform=$(uname -a)
if [[ $platform =~ "Darwin" ]]
then
go build -o webp-server-darwin-amd64 webp-server.go
elif [[ $platform =~ "x86_64" ]];then
go build -o webp-server-unix-amd64 webp-server.go
else
go build -o webp-server-linux-i386 webp-server.go
fi