Skip to content

Commit

Permalink
fix(bundler): debian package Installed-Size value (#1735)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog authored May 7, 2021
1 parent e37e187 commit 8e0d4f6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/bundle-deb-installed-size.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---

Fixes the `Installed-Size` value on the debian package.
7 changes: 6 additions & 1 deletion tooling/bundler/src/bundle/linux/debian.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ fn generate_control_file(
)?;
writeln!(&mut file, "Version: {}", settings.version_string())?;
writeln!(&mut file, "Architecture: {}", arch)?;
writeln!(&mut file, "Installed-Size: {}", total_dir_size(data_dir)?)?;
// Installed-Size must be divided by 1024, see https://www.debian.org/doc/debian-policy/ch-controlfields.html#installed-size
writeln!(
&mut file,
"Installed-Size: {}",
total_dir_size(data_dir)? / 1024
)?;
let authors = settings
.authors_comma_separated()
.unwrap_or_else(String::new);
Expand Down

0 comments on commit 8e0d4f6

Please sign in to comment.