Skip to content

Commit

Permalink
feat(installer): support apple arm64 builds in the installer. Closes o…
Browse files Browse the repository at this point in the history
  • Loading branch information
gabek committed Nov 20, 2023
1 parent 4a7ec78 commit 0fa3c22
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions static/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,28 @@ main() {
# Determine operating system & architecture
case $(uname -s) in
"Darwin")
OWNCAST_ARCH="64bit"
PLATFORM="macOS"
FFMPEG_VERSION="4.3.1"
FFMPEG_DOWNLOAD_URL="https://evermeet.cx/ffmpeg/ffmpeg-${FFMPEG_VERSION}.zip"
FFMPEG_TARGET_FILE="${INSTALL_TEMP_DIRECTORY}/ffmpeg.zip"
case "$(uname -m)" in
"x86_64")
OWNCAST_ARCH="64bit"
PLATFORM="macOS"
FFMPEG_VERSION="4.3.1"
FFMPEG_DOWNLOAD_URL="https://evermeet.cx/ffmpeg/ffmpeg-${FFMPEG_VERSION}.zip"
FFMPEG_TARGET_FILE="${INSTALL_TEMP_DIRECTORY}/ffmpeg.zip"
;;
"arm64")
OWNCAST_ARCH="arm64"
PLATFORM="macOS"
FFMPEG_VERSION="6"
FFMPEG_DOWNLOAD_URL="https://www.osxexperts.net/ffmpeg${FFMPEG_VERSION}arm.zip"
FFMPEG_TARGET_FILE="${INSTALL_TEMP_DIRECTORY}/ffmpeg.zip"
;;
*)
errorAndExit "Unsupported CPU architecture $(uname -m)"
;;
esac
;;

# ;;
"Linux")
case "$(uname -m)" in
"x86_64")
Expand Down

0 comments on commit 0fa3c22

Please sign in to comment.