github.com/Microsoft/fabrikate@v0.0.0-20190420002442-bff75be28d02/scripts/build (about)

     1  #!/bin/bash
     2  
     3  if [ $# -ne 1 ]; then
     4    echo "$0: takes exactly one argument: the version number of the the release."
     5    exit 1
     6  fi
     7  
     8  rm -rf releases/$1
     9  mkdir -p releases/$1
    10  
    11  echo "Building for Mac"
    12  GOOS=darwin GOARCH=amd64 go build -o fab
    13  zip releases/$1/fab-v$1-darwin-amd64.zip fab
    14  
    15  echo "Building for Linux"
    16  GOOS=linux GOARCH=amd64 go build -o fab
    17  zip releases/$1/fab-v$1-linux-amd64.zip fab
    18  
    19  echo "Release zip files can be found in releases/$1"