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..06c51ddb 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 @@ -1,5 +1,5 @@ import 'dart:io'; - +import 'package:intl/intl.dart'; import 'package:flutter_app_packager/src/api/app_package_maker.dart'; class MakeRPMConfig extends MakeConfig { @@ -105,6 +105,9 @@ class MakeRPMConfig extends MakeConfig { @override Map toJson() { + DateTime now = DateTime.now(); + String formattedDate = DateFormat('EEE MMM dd yyyy').format(now); + final rpmVersion = appVersion.toString(); return { 'SPEC': { 'preamble': { @@ -150,6 +153,7 @@ class MakeRPMConfig extends MakeConfig { 'inline-body': { '%defattr': '(-,root,root)', '%attr': '(4755, root, root) %{_datadir}/pixmaps/%{name}.png', + '%changelog': '\n* $formattedDate $packager <$packagerEmail> - $rpmVersion\n- $changelog', }, }, 'DESKTOP': { diff --git a/packages/flutter_app_packager/pubspec.yaml b/packages/flutter_app_packager/pubspec.yaml index e85cc294..5d240364 100644 --- a/packages/flutter_app_packager/pubspec.yaml +++ b/packages/flutter_app_packager/pubspec.yaml @@ -17,6 +17,7 @@ dependencies: pubspec_parse: ^1.1.0 shell_executor: ^0.1.6 yaml: ^3.1.0 + intl: ^0.20.0 dev_dependencies: dependency_validator: ^3.0.0