From 1900578d2d3ce0c54ab08302226996e91e5b97c9 Mon Sep 17 00:00:00 2001 From: Svallinn <41585298+Svallinn@users.noreply.github.com> Date: Sun, 23 May 2021 03:52:50 +0100 Subject: [PATCH] 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 --- _scripts/build.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_scripts/build.js b/_scripts/build.js index 21e167cf..9303aa74 100644 --- a/_scripts/build.js +++ b/_scripts/build.js @@ -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",