From dbc86f257c9240153c5c8bde0412461bdec6e30b Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Fri, 3 Oct 2025 21:46:37 -0400 Subject: [PATCH] bin/setup installs system dependencies --- bin/setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/setup b/bin/setup index f1407fb90..c5421260e 100755 --- a/bin/setup +++ b/bin/setup @@ -1,11 +1,16 @@ #!/usr/bin/env ruby +require "mkmf" def system!(*args) system(*args, exception: true) end puts "\n== Installing Ruby and Node ==" system("mise install -y") puts "\n== Installing dependencies ==" +if MakeMakefile.find_executable0("pacman") + packages = "imagemagick openslide" + system("pacman -Q #{packages} || sudo pacman -S --noconfirm --needed #{packages}") +end system("gem install bundler --conservative") system("bundle config set --local auto_install true") system("bundle check") || system!("bundle install")