Build: Suppress generation of .build-id links in rpm packages

This commit addresses a certain issue with `rpmbuild` in which certain
packages will conflict with each other because they have identical
`.build-id` links in the package.

I can speculate from some comments I've seen that this might be do
to electron versions the packages rely on, but I can't know for sure.

Most relevant issues I've seen:
https://github.com/jordansissel/fpm/issues/1503
https://github.com/jgraph/drawio-desktop/issues/259
This commit is contained in:
Svallinn 2021-05-23 03:52:50 +01:00
parent 56f4c37735
commit 1900578d2d
No known key found for this signature in database
GPG Key ID: 09FB527F34037CCA

View File

@ -69,6 +69,12 @@ const config = {
icon: '_icons/icon.svg',
target: ['deb', 'zip', 'apk', 'rpm', 'AppImage', 'pacman'],
},
// See the following issues for more information
// https://github.com/jordansissel/fpm/issues/1503
// https://github.com/jgraph/drawio-desktop/issues/259
rpm: {
fpm: [`--rpm-rpmbuild-define=_build_id_links none`]
},
deb: {
depends: [
"libgtk-3-0",