File tree Expand file tree Collapse file tree 6 files changed +4
-6
lines changed Expand file tree Collapse file tree 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.
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
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/"$//' )
6
6
package=" histkeep"
7
7
bin=" histkeep"
8
8
repo=" https://github.com/bbeardsley/histkeep-cli"
@@ -18,7 +18,6 @@ platforms=(
18
18
19
19
rm -f dist/*
20
20
21
- cd src/cmd/histkeep-cli
22
21
for platform in " ${platforms[@]} "
23
22
do
24
23
platform_split=(${platform// \/ / } )
33
32
34
33
echo " Building for GOOS=$GOOS GOARCH=$GOARCH "
35
34
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}
39
38
done
40
- cd ../../..
41
39
42
40
DARWIN_AMD64=${package} _v${version} _darwin_amd64.zip
43
41
You can’t perform that action at this time.
0 commit comments