fix(release): extract RPM packages with bsdtar

This commit is contained in:
NimBold
2026-07-12 11:31:52 +03:30
parent c1fa87b953
commit a09bbc97bf
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -64,6 +64,7 @@ jobs:
libtinfo5 \ libtinfo5 \
rpm \ rpm \
cpio \ cpio \
libarchive-tools \
desktop-file-utils \ desktop-file-utils \
xdg-utils xdg-utils
- run: npm ci - run: npm ci
+7 -1
View File
@@ -123,7 +123,13 @@ function extractDeb(packageFile, destination) {
function extractRpm(packageFile, destination) { function extractRpm(packageFile, destination) {
fs.mkdirSync(destination, { recursive: true }); 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) { function readPayloadManifest(root, label) {