leanflutter / flutter_distributor

An all-in-one Flutter application packaging and distribution tool, providing you with a one-stop solution to meet various distribution needs.
https://distributor.leanflutter.dev/
MIT License
892 stars 125 forks source link

RPM Packaging is not working #235

Open jyo64 opened 1 week ago

jyo64 commented 1 week ago

When I try to create an RPM Package for a flutter build I get the following error:

cp: cannot stat 'saber/*': No such file or directory error: Bad exit status from /var/tmp/rpm-tmp.xMvFh2 (%install) %source_date_epoch_from_changelog is set, but %changelog has no entries to take a date from Bad exit status from /var/tmp/rpm-tmp.xMvFh2 (%install)

RPM build warnings:

RPM build errors: MakeError

0 AppPackageMakerRPM._make (package:flutter_app_packager/src/makers/rpm/app_package_maker_rpm.dart:179:7)

#1 FlutterDistributor.package (package:flutter_distributor/src/flutter_distributor.dart:182:35) #2 CommandRunner.runCommand (package:args/command_runner.dart:212:13) Unhandled exception: MakeError #0 AppPackageMakerRPM._make (package:flutter_app_packager/src/makers/rpm/app_package_maker_rpm.dart:179:7) #1 FlutterDistributor.package (package:flutter_distributor/src/flutter_distributor.dart:182:35) #2 CommandRunner.runCommand (package:args/command_runner.dart:212:13) My SPEC file does not generate an attribute called changelog even if its in my make config file. Could it be an issue with make_rpm_config.dart?
jyo64 commented 4 days ago

Maybe because in packages/flutter_app_packager/lib/src/makers/rpm/make_rpm_config.dart changelog is being read, but not written to the SPEC file.