added support for arm64
added arm64 support for update. Tested on Arch amd64, Debian arm64 and Alpine amd64
This commit is contained in:
parent
98f0820ca4
commit
6ec5437294
1 changed files with 19 additions and 12 deletions
|
@ -2,7 +2,11 @@
|
||||||
# XXX: This should be removed when elixir's releases get custom command support
|
# XXX: This should be removed when elixir's releases get custom command support
|
||||||
|
|
||||||
detect_flavour() {
|
detect_flavour() {
|
||||||
arch="amd64"
|
machine_type=$(uname -m)
|
||||||
|
if [ ${machine_type} = 'aarch64' ] ; then
|
||||||
|
arch='arm64'
|
||||||
|
elif [ ${machine_type} = 'x86_64' ] ; then
|
||||||
|
arch='amd64'
|
||||||
if getconf GNU_LIBC_VERSION >/dev/null; then
|
if getconf GNU_LIBC_VERSION >/dev/null; then
|
||||||
libc_postfix=""
|
libc_postfix=""
|
||||||
elif [ "$(ldd 2>&1 | head -c 9)" = "musl libc" ]; then
|
elif [ "$(ldd 2>&1 | head -c 9)" = "musl libc" ]; then
|
||||||
|
@ -13,10 +17,13 @@ detect_flavour() {
|
||||||
echo "Unsupported libc" >&2
|
echo "Unsupported libc" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "Could not detect your architecture please pass them via --flavour"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
echo "$arch$libc_postfix"
|
echo "$arch$libc_postfix"
|
||||||
}
|
}
|
||||||
|
|
||||||
detect_branch() {
|
detect_branch() {
|
||||||
version="$(cut -d' ' -f2 <"$RELEASE_ROOT"/releases/start_erl.data)"
|
version="$(cut -d' ' -f2 <"$RELEASE_ROOT"/releases/start_erl.data)"
|
||||||
# Expected format: major.minor.patch_version(-number_of_commits_ahead_of_tag-gcommit_hash).branch
|
# Expected format: major.minor.patch_version(-number_of_commits_ahead_of_tag-gcommit_hash).branch
|
||||||
|
|
Loading…
Reference in a new issue