etcher icon indicating copy to clipboard operation
etcher copied to clipboard

fix: etcher-util is corrupted in RPM package

Open rglidden opened this issue 5 months ago • 0 comments

rpmbuild strips executables by default when generating an rpm packge. This was causing the JavaScript code bundled in the etcher-util file to be removed, causing "Pkg: Error reading from file." whenever etcher-util was called.

This in turn caused balena-etcher to generate the error message Error: (0, h.requestMetadata) is not a function when attempting to write an SD card.

This fixes the issue for RPM builds by replacing the strip command with true so that rpmbuild no longer strips the executables and the embeded code stays intact.

See: https://github.com/balena-io/etcher/issues/4150

rglidden avatar Aug 25 '24 17:08 rglidden