From 4283f76e5320c67b3bc16d657c2baf4944ddb6a1 Mon Sep 17 00:00:00 2001 From: Sam Heinz Date: Thu, 16 Jul 2026 23:27:36 +1000 Subject: [PATCH] Update install/invidious-install.sh --- install/invidious-install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/install/invidious-install.sh b/install/invidious-install.sh index f51e684e2..3880ff9c9 100644 --- a/install/invidious-install.sh +++ b/install/invidious-install.sh @@ -30,8 +30,14 @@ $STD apt install -y \ fonts-open-sans msg_ok "Installed Dependencies" -setup_deb822_repo "crystal" "https://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_13/Release.key" "https://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_13/" "./" -$STD apt install -y crystal +if [[ "$(arch_resolve amd64 arm64)" == "amd64" ]]; then + setup_deb822_repo "crystal" "https://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_13/Release.key" "https://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_13/" "./" + $STD apt install -y crystal +else + fetch_and_deploy_gh_release "Crystal" "crystal-lang/crystal" "prebuild" "latest" "/opt/crystal" "crystal-*-linux-aarch64-bundled.tar.gz" + ln -sf /opt/crystal/bin/crystal /usr/local/bin/crystal + ln -sf /opt/crystal/bin/shards /usr/local/bin/shards +fi PG_VERSION="17" setup_postgresql PG_DB_NAME="invidious" PG_DB_USER="invidious" setup_postgresql_db