Skip to content

Commit 2199936

Browse files
author
Brent Beardsley
committed
more tweaks
1 parent 3d80443 commit 2199936

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

release.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -e
44

5-
version=$(cat src/cmd/histkeep-cli/main.go | grep "^const version = " | sed 's/^const version = "//;s/"$//')
5+
version=$(cat main.go | grep "^const version = " | sed 's/^const version = "//;s/"$//')
66
package="histkeep"
77
bin="histkeep"
88
repo="https://github.com/bbeardsley/histkeep-cli"
@@ -18,7 +18,6 @@ platforms=(
1818

1919
rm -f dist/*
2020

21-
cd src/cmd/histkeep-cli
2221
for platform in "${platforms[@]}"
2322
do
2423
platform_split=(${platform//\// })
@@ -33,11 +32,10 @@ do
3332

3433
echo "Building for GOOS=$GOOS GOARCH=$GOARCH"
3534

36-
env GOOS=$GOOS GOARCH=$GOARCH go build -o ../../../dist/${BIN} &&
37-
zip -q ../../../dist/${ZIP} -j ../../../dist/${BIN} &&
38-
rm ../../../dist/${BIN}
35+
env GOOS=$GOOS GOARCH=$GOARCH go build -o dist/${BIN} &&
36+
zip -q dist/${ZIP} -j dist/${BIN} &&
37+
rm dist/${BIN}
3938
done
40-
cd ../../..
4139

4240
DARWIN_AMD64=${package}_v${version}_darwin_amd64.zip
4341

0 commit comments

Comments
 (0)