Skip to content

Fix build on Linux x86#168

Merged
pol-rivero merged 1 commit into
mainfrom
fix-build
May 23, 2026
Merged

Fix build on Linux x86#168
pol-rivero merged 1 commit into
mainfrom
fix-build

Conversation

@pol-rivero
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 23, 2026 08:19
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to fix RPM packaging failures on Linux x86_64 by preventing rpmbuild’s brp-strip step from attempting to strip non-native ELF binaries bundled as resources, which can abort the RPM build.

Changes:

  • Patch electron-installer-redhat’s generated spec file to set %global __strip /bin/true, disabling stripping during RPM build.
  • Add readFile/writeFile usage to modify the generated spec before the installer runs, and restore the original method afterward.

Comment thread script/package-redhat.ts
Comment on lines +105 to +110
const { Installer } = installer
const originalCreateSpec = Installer.prototype.createSpec
Installer.prototype.createSpec = async function (this: any) {
await originalCreateSpec.call(this)
const specContent: string = await readFile(this.specPath, 'utf8')
await writeFile(this.specPath, '%global __strip /bin/true\n' + specContent)
@pol-rivero pol-rivero merged commit 045effe into main May 23, 2026
20 of 35 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants