mirror of
https://github.com/cheat/cheat.git
synced 2024-12-18 18:55:06 +01:00
d19f0e1c5d
- Deprecates `bin/deps.sh`. It was rendered obsolete with 217566, and the introduction of a `go.mod` file. - Fixes two minor typos in the buld scripts. - Bumps the version to `3.0.1`.
15 lines
538 B
Bash
Executable File
15 lines
538 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# locate the cheat project root
|
|
BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
APPDIR=$(readlink -f "$BINDIR/..")
|
|
|
|
# build embeds
|
|
cd "$APPDIR/cmd/cheat"
|
|
go clean && go generate
|
|
|
|
# compile AMD64 for Linux, OSX, and Windows
|
|
env GOOS=darwin GOARCH=amd64 go build -o "$APPDIR/dist/cheat-darwin-amd64" "$APPDIR/cmd/cheat"
|
|
env GOOS=linux GOARCH=amd64 go build -o "$APPDIR/dist/cheat-linux-amd64" "$APPDIR/cmd/cheat"
|
|
env GOOS=windows GOARCH=amd64 go build -o "$APPDIR/dist/cheat-win-amd64.exe" "$APPDIR/cmd/cheat"
|