fix(release): extract RPM packages with bsdtar

This commit is contained in:
NimBold
2026-07-12 11:31:52 +03:30
parent c1fa87b953
commit 56b4c9f511
2 changed files with 8 additions and 1 deletions
+7 -1
View File
@@ -123,7 +123,13 @@ function extractDeb(packageFile, destination) {
function extractRpm(packageFile, destination) {
fs.mkdirSync(destination, { recursive: true });
run('bash', ['-o', 'pipefail', '-c', 'rpm2cpio "$1" | (cd "$2" && cpio --no-absolute-filenames -idm --quiet)', '--', packageFile, destination]);
run('bsdtar', [
'--extract',
'--file', packageFile,
'--directory', destination,
'--no-same-owner',
'--no-same-permissions',
]);
}
function readPayloadManifest(root, label) {