Skip to content

Commit

Permalink
Merge pull request #18144 from cho-m/installed_size
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcQuaid authored Aug 26, 2024
2 parents d58302e + 253db8d commit 70e777c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Homebrew/dev-cmd/bottle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,7 @@ def bottle_formula(formula)
all_files = keg.find
.select(&:file?)
.map { |path| path.to_s.delete_prefix(keg_prefix) }
installed_size = keg.disk_usage
end

json = {
Expand Down Expand Up @@ -693,6 +694,7 @@ def bottle_formula(formula)
"tab" => tab.to_bottle_hash,
"path_exec_files" => path_exec_files,
"all_files" => all_files,
"installed_size" => installed_size,
},
},
},
Expand Down
1 change: 1 addition & 0 deletions Library/Homebrew/github_packages.rb
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ def upload_bottle(user, token, skopeo, formula_full_name, bottle_hash, keep_old:
"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
Expand Down

0 comments on commit 70e777c

Please sign in to comment.