Skip to content

Commit 8a00dac

Browse files
committed
Reduced installation size
1 parent 55dfc2f commit 8a00dac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/or-tools/vendor.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ def download_file(url, download_path, redirects = 0)
139139
FileUtils.mv(File.join(extract_path, "include"), File.join(path, "include"))
140140

141141
# shared library
142-
FileUtils.mv(File.join(extract_path, "lib"), File.join(path, "lib"))
142+
FileUtils.mkdir(File.join(path, "lib"))
143+
Dir.glob("lib/lib*{.dylib,.so,.so.*}", base: extract_path) do |file|
144+
FileUtils.mv(File.join(extract_path, file), File.join(path, file))
145+
end
143146
end
144147

145148
# export

0 commit comments

Comments
 (0)