Skip to content

Commit f5aef02

Browse files
authored
Fix windows binary name in build script
1 parent e585dec commit f5aef02

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/build_binaries.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ for tuple in $OS_ARCH_TUPLES; do
7171
mkdir -p "$o/licenses"
7272
cp -r ./licenses "$o/licenses"
7373
cp LICENSE "$o/licenses"
74-
echo Building "$o/$bin"
75-
obin="$bin"
74+
bin="doltgres"
7675
if [ "$os" = windows ]; then
77-
obin="$bin.exe"
76+
bin="$bin.exe"
7877
fi
78+
echo Building "$o/bin/$bin"
7979
CGO_ENABLED=1 \
8080
GOOS="$os" \
8181
GOARCH="$arch" \
@@ -85,7 +85,7 @@ for tuple in $OS_ARCH_TUPLES; do
8585
CGO_LDFLAGS="${platform_cgo_ldflags[${tuple}]}" \
8686
go build -buildvcs=false -trimpath \
8787
-ldflags="${platform_go_ldflags[${tuple}]}" \
88-
-tags icu_static -o "$o/bin/$obin" \
88+
-tags icu_static -o "$o/bin/$bin" \
8989
./cmd/doltgres
9090
if [ "$os" = windows ]; then
9191
(cd out && 7z a "doltgresql-$os-$arch.zip" "doltgresql-$os-$arch" && 7z a "doltgresql-$os-$arch.7z" "doltgresql-$os-$arch")

0 commit comments

Comments
 (0)