6 Commits
Author SHA1 Message Date
Hiroshi SHIBATAandClaude Fable 5 908150f7e2 Harden path handling and license collection in binary-package
Normalize backslashes in the directory arguments before they reach
Dir.glob so an overridden vcpkg path fails clearly instead of through
a misleading missing-DLL abort, and abort when no vcpkg copyright files
are collected so the package never ships a bundled DLL without its
license terms.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 13:26:29 +09:00
Hiroshi SHIBATAandClaude Fable 5 c0ee7c6364 Prefer the inbox tar.exe when archiving a binary package
A GNU tar earlier in PATH cannot write zip with -a, which made the
archiving step environment dependent. Pointed out by Copilot on
GH-17662.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 13:26:29 +09:00
7af7815b2f Simplify configure_args scrubbing in binary-package
Apply the review suggestion from nobu on GH-17662.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 13:26:29 +09:00
Hiroshi SHIBATAandClaude Fable 5 b79f10aa83 Do not bundle the VC runtime in binary-package
App-local copies of vcruntime140*.dll are never serviced by Windows
Update. Assume the VC++ Redistributable is installed instead, as
suggested by naruse.

https://bugs.ruby-lang.org/issues/22180#change-117963

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 13:26:29 +09:00
Hiroshi SHIBATAandClaude Fable 5 fec7b8b6e7 Scrub build-machine paths from packaged rbconfig
mkmf applies $configure_args to every extension build, so a leftover
--with-opt-dir pointing into the build machine's vcpkg tree breaks or
taints gem compilation on the destination machine. Strip arguments
containing absolute paths from CONFIG["configure_args"] when
assembling a binary package.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 13:26:29 +09:00
Hiroshi SHIBATAandClaude Fable 5 98097c53f9 Add binary-package target on mswin
Stage `install-nodoc` under DESTDIR, bundle the vcpkg runtime DLLs,
the VC runtime and the license terms of everything redistributed,
then archive the tree into a relocatable zip. Groundwork for official
Windows binary packages.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 13:26:29 +09:00