Skip to content

Conversation

@eximius313
Copy link

Fixes #312

  • Refactored AppPackageMakerRPM to use appBinaryName (from CMake) instead of appName (from pubspec) when generating the .spec file, .desktop file, and copying icons. This ensures consistency with the metainfo file logic and prevents "File not found" errors when the binary name differs from the project name.
  • Updated MakeRPMConfig to extend MakeLinuxPackageConfig to correctly detect the BINARY_NAME.
  • Updated the %install section in the spec file to source all assets (.desktop, .png, .xml) using $appBinaryName and symlink the correct binary $appBinaryName to %{name} in /usr/bin.

…ogic

- Refactored `AppPackageMakerRPM` to use `appBinaryName` (from CMake) instead of `appName` (from pubspec) when generating the `.spec` file, `.desktop` file, and copying icons. This ensures consistency with the `metainfo` file logic and prevents "File not found" errors when the binary name differs from the project name.
- Updated `MakeRPMConfig` to extend `MakeLinuxPackageConfig` to correctly detect the `BINARY_NAME`.
- Updated the `%install` section in the spec file to source all assets (`.desktop`, `.png`, `.xml`) using `$appBinaryName` and symlink the correct binary `$appBinaryName` to `%{name}` in `/usr/bin`.
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.

[RPM] Fix broken symlinks when binary name differs from package name & improve asset consistency

1 participant