dev-cmd/bottle: include installed_size in metadata

This commit is contained in:
Michael Cho 2024-08-23 14:19:07 -04:00
parent 72dec98721
commit 253db8def2
No known key found for this signature in database
GPG Key ID: 55E85E28A7CD1E85
2 changed files with 3 additions and 0 deletions

View File

@ -661,6 +661,7 @@ module Homebrew
all_files = keg.find
.select(&:file?)
.map { |path| path.to_s.delete_prefix(keg_prefix) }
installed_size = keg.disk_usage
end
json = {
@ -693,6 +694,7 @@ module Homebrew
"tab" => tab.to_bottle_hash,
"path_exec_files" => path_exec_files,
"all_files" => all_files,
"installed_size" => installed_size,
},
},
},

View File

@ -394,6 +394,7 @@ class GitHubPackages
"sh.brew.bottle.digest" => tar_gz_sha256,
"sh.brew.bottle.glibc.version" => glibc_version,
"sh.brew.bottle.size" => local_file_size.to_s,
"sh.brew.bottle.installed_size" => tag_hash["installed_size"].to_s,
"sh.brew.tab" => tab.to_json,
"sh.brew.path_exec_files" => path_exec_files_string,
}.compact_blank