Renamed build-cli.sh to release-cli.sh
This commit is contained in:
parent
f83aee66f4
commit
18171422f7
1 changed files with 0 additions and 2 deletions
33
build-cli.sh
33
build-cli.sh
|
@ -1,33 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
setopt -e
|
||||
|
||||
WORKDIR="./cli"
|
||||
CORE_DIR="./core"
|
||||
OUTPUT_DIR="../dist"
|
||||
|
||||
function gobuild {
|
||||
printf -- "-> ${GOOS}\t${GOARCH}\t${OUTPUT_FILE} "
|
||||
go build -ldflags="-X 'github.com/ChaoticByte/lurch-dl/core.Version=${VERSION}'" -o "${OUTPUT_DIR}/${OUTPUT_FILE}" && printf "\t✔\n"
|
||||
}
|
||||
|
||||
read -r VERSION < ./VERSION
|
||||
|
||||
cd "${WORKDIR}"
|
||||
|
||||
NAME_BASE="lurch-dl_v${VERSION}"
|
||||
|
||||
echo "Building ${NAME_BASE} into ${OUTPUT_DIR}"
|
||||
|
||||
GOOS=windows GOARCH=386 OUTPUT_FILE=${NAME_BASE}_32bit.exe gobuild
|
||||
GOOS=windows GOARCH=amd64 OUTPUT_FILE=${NAME_BASE}_64bit.exe gobuild
|
||||
GOOS=windows GOARCH=arm64 OUTPUT_FILE=${NAME_BASE}_arm64.exe gobuild
|
||||
GOOS=linux GOARCH=386 OUTPUT_FILE=${NAME_BASE}_linux_i386 gobuild
|
||||
GOOS=linux GOARCH=amd64 OUTPUT_FILE=${NAME_BASE}_linux_amd64 gobuild
|
||||
GOOS=linux GOARCH=arm OUTPUT_FILE=${NAME_BASE}_linux_arm gobuild
|
||||
GOOS=linux GOARCH=arm64 OUTPUT_FILE=${NAME_BASE}_linux_arm64 gobuild
|
||||
|
||||
cd ..
|
||||
|
||||
printf -- "Creating version tag"
|
||||
git tag -f "v${VERSION}" -m "" && printf "\t\t✔\n"
|
Loading…
Add table
Add a link
Reference in a new issue