diff --git a/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart b/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart index 87a8381c..df536ecc 100644 --- a/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart +++ b/packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart @@ -35,6 +35,9 @@ class MakeRPMConfig extends MakeConfig { this.defattr, this.attr, this.changelog, + + // RPM ln bug fix + this.binName, }); factory MakeRPMConfig.fromJson(Map json) { @@ -68,6 +71,7 @@ class MakeRPMConfig extends MakeConfig { defattr: json['defattr'] as String?, attr: json['attr'] as String?, changelog: json['changelog'] as String?, + binName: json['bin_name'] as String?, ); } @@ -102,6 +106,8 @@ class MakeRPMConfig extends MakeConfig { String? defattr; String? attr; String? changelog; + //RPM ln bug fix + String? binName; @override Map toJson() { @@ -132,7 +138,7 @@ class MakeRPMConfig extends MakeConfig { 'mkdir -p %{buildroot}%{_datadir}/metainfo', 'mkdir -p %{buildroot}%{_datadir}/pixmaps', 'cp -r %{name}/* %{buildroot}%{_datadir}/%{name}', - 'ln -s %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}', + 'ln -s %{_datadir}/%{name}/${binName ?? "%{name}"} %{buildroot}%{_bindir}/%{name}', 'cp -r %{name}.desktop %{buildroot}%{_datadir}/applications', 'cp -r %{name}.png %{buildroot}%{_datadir}/pixmaps', 'cp -r %{name}*.xml %{buildroot}%{_datadir}/metainfo || :',