lib/ffi-libarchive-binary/zlib_recipe.rb
Binary write mode ('wb', 'wb+')Ruby changes the working directory
SHA-2566d5d64aad8eb30c67fcc7cc289a68b73d2ed165f7bca611ee72da3ff399c32df
MaleculeH₂(F₂Os)
Evidence
1# frozen_string_literal: true
2
3require "pathname"
4require_relative "base_recipe"
5
6module LibarchiveBinary
⋯6 lines
14:11… -static",
15 ]
16 end
17
18 def configure_windows
19 mk = File.read("win32/Makefile.gcc")
20 File.open("win32/Makefile.gcc", "wb") do |f|
21 f.puts "BINARY_PATH = #{path}/bin"
22 f.puts "LIBRARY_PATH = #{path}/lib"
23 f.puts "INCLUDE_PATH = …
28:3… end
29
30 def configure
31 if MiniPortile::windows?
32 Dir.chdir(work_path) do
33 configure_windows
34 end
⋯4 lines