From d3431330c80440e06c84de63961a1804e786fc72 Mon Sep 17 00:00:00 2001 From: Loudbook Date: Wed, 9 Oct 2024 22:23:18 -0400 Subject: [PATCH] Update macos-run.sh --- macos-run.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/macos-run.sh b/macos-run.sh index 8d17051..7d59959 100644 --- a/macos-run.sh +++ b/macos-run.sh @@ -1,4 +1,11 @@ - cd /tmp && curl -LO "https://github.com/Loudbooks/ReportBook/releases/latest/download/reportbook" - chmod +x ./reportbook - ./reportbook - rm ./reportbook +if [[ $(uname -m) == 'arm64' ]]; then + cd /tmp && curl -LO "https://github.com/Loudbooks/ReportBook/releases/latest/download/reportbook-macos-aarch64" + chmod +x ./reportbook-macos-aarch64 + ./reportbook-macos-aarch64 + rm ./reportbook-macos-aarch64 +else + cd /tmp && curl -LO "https://github.com/Loudbooks/ReportBook/releases/latest/download/reportbook-macos-x86_64" + chmod +x ./reportbook-macos-x86_64 + ./reportbook-macos-x86_64 + rm ./reportbook-macos-x86_64 +fi