-
-
Notifications
You must be signed in to change notification settings - Fork 205
Open
Description
Bug Description
The current RPM packaging logic fails when the application's binary name (defined in linux/CMakeLists.txt) differs from the package name or the pubspec name.
- Inheritance Issue:
MakeRPMConfigextendsMakeConfigdirectly, bypassing the logic inMakeLinuxPackageConfigthat parsesCMakeLists.txtto find the realBINARY_NAME. As a result,appBinaryNamedefaults topubspec.name, causing broken paths if CMake defines a different name. - Symlink Issue: The
%installscript attempts to symlink files using incorrect names, leading toFile not founderrors during the build or broken symlinks after installation. - Builder Inconsistency: AppPackageMakerRPM generates assets (icons, .desktop files) using the project name, but the binary is named differently
- Metainfo Mismatch: The metainfo logic already used appBinaryName, creating a mix of naming conventions in the BUILD directory.
Proposed Solution
- Change
MakeRPMConfigto extendMakeLinuxPackageConfig. This inherits the correctappBinaryNamegetter. - Update the
%installsection to create a symlink pointing to the real binary ($appBinaryName) but named after the package (%{name}). - Update .png, .desktop, .xml to use
appBinaryName
Metadata
Metadata
Assignees
Labels
No labels