Skip to content

Commit d68f1c1

Browse files
committed
Fix .deb package contents ownership
1 parent a6a0552 commit d68f1c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ldnp/deb.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ def generate_shlibs_file(self):
8484

8585
def generate_deb(self, out_path: str):
8686
logger.info(f"Generating .deb package called {out_path}")
87-
run_command(["dpkg-deb", "-Zxz", "-b", self.context.install_root_dir, out_path])
87+
# make sure all files are owned by root
88+
# see https://github.com/TheAssassin/AppImageLauncher/issues/723#issuecomment-3222120069
89+
run_command(["dpkg-deb", "-Zxz", "--root-owner-group", "-b", self.context.install_root_dir, out_path])
8890

8991
def create_package(self, out_path: str | os.PathLike):
9092
logger.info(f"Creating Debian package called {out_path}")

0 commit comments

Comments
 (0)