diff --git a/CHANGELOG.md b/CHANGELOG.md index 251dca2..95163ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ release path documented in [`TODO.md`](TODO.md). used as custom parameter names again. - `npm run checksums` generates `md5`/`sha256` sidecar files for the packaged `.rpm` and `.AppImage` artifacts in `dist/`, matching the release workflow. +- The RPM artifact is now named all-lower-case (`musrflow--.rpm`) + instead of the mixed-case product name, since RPM package names must be + lower case. ## 1.0.0-rc.4 (2026-09-23) diff --git a/package.json b/package.json index 33a4443..0e462fc 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,8 @@ "icon": "assets/musrflow-icon.png" }, "rpm": { - "packageCategory": "Applications/Science" + "packageCategory": "Applications/Science", + "artifactName": "${name}-${version}-${arch}.${ext}" } } } diff --git a/tests/release-packaging.test.js b/tests/release-packaging.test.js index 7a3900b..32356ae 100644 --- a/tests/release-packaging.test.js +++ b/tests/release-packaging.test.js @@ -16,6 +16,8 @@ assert.strictEqual(lock.packages[''].version, pkg.version); assert.strictEqual(pkg.build.appId, 'ch.psi.lmu.musrflow'); assert(pkg.build.linux.target.includes('rpm')); assert(pkg.build.linux.target.includes('AppImage')); +assert.strictEqual(pkg.build.rpm.artifactName, '${name}-${version}-${arch}.${ext}'); +assert(!pkg.build.rpm.artifactName.includes('${productName}'), 'RPM artifact name must be lower case'); assert(pkg.scripts['dist:rpm'].includes('electron-builder@26.15.3')); assert(pkg.scripts['dist:appimage'].includes('electron-builder@26.15.3')); assert(pkg.scripts['checksums:md5'].includes('md5sum'));