Skip to content

Commit

Permalink
Merge pull request #309 from waveywaves/installer/aarch64-support
Browse files Browse the repository at this point in the history
feat: support installation on aarch64 systems
  • Loading branch information
dciangot authored Oct 23, 2024
2 parents dee9d6e + 6f9f8c1 commit 63fa817
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions cmd/installer/templates/interlink-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ case "$OSARCH" in
x86_64)
OSARCH=amd64
;;
aarch64)
OSARCH=arm64
;;
esac


Expand All @@ -39,14 +42,22 @@ ExportPodData: true
DataRootFolder: "~/.interlink"
EOF

INTERLINK_OS=$(uname -s)
INTERLINK_ARCH=$(uname -m)

# aarch64 is arm64 in golang. The goreleaser does not consider aarch64 as a different architecture.
if [ "$INTERLINK_ARCH" = "aarch64" ]; then
INTERLINK_ARCH="arm64"
fi

echo "=== Configured to reach sidecar service on unix://${HOME}/.interlink/plugin.sock. You can edit this behavior changing $HOME/.interlink/config/InterLinkConfig.yaml file. ==="

## Download binaries to $HOME/.local/interlink/
echo "curl --fail -L -o ${HOME}/.interlink/bin/interlink https://github.com/interTwin-eu/interLink/releases/download/{{.InterLinkVersion}}/interlink_$(uname -s)_$(uname -m)"
echo "curl --fail -L -o ${HOME}/.interlink/bin/interlink https://github.com/interTwin-eu/interLink/releases/download/{{.InterLinkVersion}}/interlink_${INTERLINK_OS}_${INTERLINK_ARCH}"

{
{
curl --fail -L -o ${HOME}/.interlink/bin/interlink https://github.com/interTwin-eu/interLink/releases/download/{{.InterLinkVersion}}/interlink_$(uname -s)_$(uname -m)
curl --fail -L -o ${HOME}/.interlink/bin/interlink https://github.com/interTwin-eu/interLink/releases/download/{{.InterLinkVersion}}/interlink_${INTERLINK_OS}_${INTERLINK_ARCH}
chmod +x ${HOME}/.interlink/bin/interlink
} || {
echo "Error downloading InterLink binaries, exiting..."
Expand Down

0 comments on commit 63fa817

Please sign in to comment.