mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 12:14:21 +01:00
18 lines
272 B
Plaintext
Executable File
18 lines
272 B
Plaintext
Executable File
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
PARENT_PATH=$(dirname $(
|
|
cd $(dirname $0)
|
|
pwd -P
|
|
))
|
|
|
|
OS=$(eval "go env GOOS")
|
|
ARCH=$(eval "go env GOARCH")
|
|
|
|
pushd $PARENT_PATH
|
|
mkdir -p build
|
|
GO111MODULE=on go build -ldflags="-s -w" -o build/coordinatord-$OS-$ARCH cmd/coordinatord/main.go
|
|
popd
|
|
|