Skip to content

Commit 8e0d4f6

Browse files
authored
fix(bundler): debian package Installed-Size value (#1735)
1 parent e37e187 commit 8e0d4f6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Fixes the `Installed-Size` value on the debian package.

tooling/bundler/src/bundle/linux/debian.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,12 @@ fn generate_control_file(
255255
)?;
256256
writeln!(&mut file, "Version: {}", settings.version_string())?;
257257
writeln!(&mut file, "Architecture: {}", arch)?;
258-
writeln!(&mut file, "Installed-Size: {}", total_dir_size(data_dir)?)?;
258+
// Installed-Size must be divided by 1024, see https://www.debian.org/doc/debian-policy/ch-controlfields.html#installed-size
259+
writeln!(
260+
&mut file,
261+
"Installed-Size: {}",
262+
total_dir_size(data_dir)? / 1024
263+
)?;
259264
let authors = settings
260265
.authors_comma_separated()
261266
.unwrap_or_else(String::new);

0 commit comments

Comments
 (0)