deno.land / x / esm@v135_2 / scripts / build.sh

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
read -p "? build GOOS (default is 'linux'): " goosread -p "? build GOARCH (default is 'amd64'): " goarchif [ "$goos" == "" ]; then goos="linux"fiif [ "$goarch" == "" ]; then goarch="amd64"fi
echo "--- building(${goos}_$goarch)..."export GOOS=$goosexport GOARCH=$goarchgo build -o $(dirname $0)/esmd $(dirname $0)/../main.go
esm

Version Info

Tagged at
2 months ago