From c29bd9254c4c6cef7e184516293f92d972302a07 Mon Sep 17 00:00:00 2001 From: sevenc-nanashi Date: Sat, 13 Dec 2025 13:15:47 +0900 Subject: [PATCH] feat: use msys2's headless installer --- lib/ruby_installer/build/components/01_msys2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby_installer/build/components/01_msys2.rb b/lib/ruby_installer/build/components/01_msys2.rb index 992c5a9a..ffd0c258 100644 --- a/lib/ruby_installer/build/components/01_msys2.rb +++ b/lib/ruby_installer/build/components/01_msys2.rb @@ -32,7 +32,7 @@ def execute(args) downloaded_path = download(msys2_download_uri, hash) puts "Run the MSYS2 installer ..." - if run_verbose(downloaded_path) && msys.with_msys_apps_enabled { run_verbose("sh", "-lc", "true") } + if run_verbose(downloaded_path, "install", "--root", File.join(RbConfig::TOPDIR, "msys64"), "--accept-messages", "--confirm-command") && msys.with_msys_apps_enabled { run_verbose("sh", "-lc", "true") } puts green(" Success") else puts red(" Failed")