Install and build adjustments (#12057)

Signed-off-by: Satadru Pramanik <satadru@gmail.com>
This commit is contained in:
Satadru Pramanik, DO, MPH, MEng
2025-06-18 11:44:27 -04:00
committed by GitHub
parent 439ca73df7
commit 770a4b8067
6 changed files with 13 additions and 7 deletions

View File

@@ -65,7 +65,7 @@ def self.check_build_uploads(architectures_to_check = nil, name = nil)
unless @remote_hash == binary_sha256_hash[arch.to_sym]
puts "#{arch}/#{name}: Adjusting sha256sum in package file to the remote binary sha256sum".lightpurple
puts "#{binary_sha256_hash[arch.to_sym]} =>\n#{@remote_hash}".blue
system "sed -i 's,#{binary_sha256_hash[arch.to_sym]},#{@remote_hash},g' packages/#{name}.rb"
system "sed 's,#{binary_sha256_hash[arch.to_sym]},#{@remote_hash},g;w packages/#{name}.rb' packages/#{name}.rb"
# Do a force install to make sure the package hashes are ok.
puts "Checking install of #{name} to confirm binary hashes are correct.".lightpurple
system "yes | crew install -f #{name} ; crew remove #{name}", exception: false