Revert "Revert precompiled ruby due to issues"

This reverts commit 86f7cb6f712292694aefbd851829746bc31a2491.
This commit is contained in:
Ryan Hughes authored and Ryan Hughes committed 2025-09-12 00:48:41 -04:00
1 parent 4d7567d840
commit a5ab0fbbce
1 file changed
+12
+12
View File
@@ -10,6 +10,7 @@ pacman --noconfirm -Sy archiso git python-pip sudo base-devel jq
build_cache_dir="/var/cache"
offline_mirror_dir="$build_cache_dir/airootfs/var/cache/omarchy/mirror/offline"
offline_ruby_dir="$build_cache_dir/airootfs/var/cache/omarchy/ruby"
# We need to fiddle with pip settings
# in order to install to the correct place
@@ -83,6 +84,7 @@ make_archiso_offline() {
mkdir -p $build_cache_dir/
mkdir -p $offline_mirror_dir/
mkdir -p $offline_ruby_dir/
# We base our ISO on the official arch ISO (releng) config
cp -r archiso/configs/releng/* $build_cache_dir/
@@ -104,6 +106,16 @@ cd -
prepare_offline_mirror
make_archiso_offline
# Download Ruby tarball if not already cached
ruby_tarball="ruby-3.4.5-rails-8.0.2.1-x86_64.tar.gz"
if [ ! -f "$offline_ruby_dir/$ruby_tarball" ]; then
echo "Downloading Ruby tarball..."
curl -fsSL -o "$offline_ruby_dir/$ruby_tarball" \
"https://pkgs.omarchy.org/ruby/$ruby_tarball"
else
echo "Ruby tarball already cached, skipping download"
fi
# Insert the configurator in the root users home folder (default user in the official releng ISO profile).
mkdir -p "$build_cache_dir/airootfs/root"
curl -fsSL -o "$build_cache_dir/airootfs/root/configurator" \