We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8961017 commit 4e8d101Copy full SHA for 4e8d101
scripts/build-release.sh
@@ -5,10 +5,20 @@ set -euo pipefail
5
VERSION=$(sed -n 's/^version: "\([0-9.]*\)"/\1/p' opam)
6
7
case "$OSTYPE" in
8
- darwin*) PLATFORM="macos" ;;
9
- linux*) PLATFORM="linux" ;;
+ darwin*) PLATFORM="macos64" ;;
+ 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
20
*)
- echo "Unknown platform $OSTYPE"
21
+ echo "Unsupported platform $OSTYPE"
22
exit 1
23
;;
24
esac
0 commit comments