Skip to content

Commit 4e8d101

Browse files
author
Santeri Hiltunen
committed
Explicit bitness in releases
1 parent 8961017 commit 4e8d101

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

scripts/build-release.sh

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,20 @@ set -euo pipefail
55
VERSION=$(sed -n 's/^version: "\([0-9.]*\)"/\1/p' opam)
66

77
case "$OSTYPE" in
8-
darwin*) PLATFORM="macos" ;;
9-
linux*) PLATFORM="linux" ;;
8+
darwin*) PLATFORM="macos64" ;;
9+
linux*)
10+
ARCHITECTURE="$(uname -m)"
11+
case "$ARCHITECTURE" in
12+
x86_64) PLATFORM="linux64" ;;
13+
i?86) PLATFORM="linux32" ;;
14+
*)
15+
echo "Unsupported architecture $ARCHITECTURE"
16+
exit 1
17+
;;
18+
esac
19+
;;
1020
*)
11-
echo "Unknown platform $OSTYPE"
21+
echo "Unsupported platform $OSTYPE"
1222
exit 1
1323
;;
1424
esac

0 commit comments

Comments
 (0)