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
772 stars 106 forks source link

Build fails with an exception when building for Windows #142

Closed BirjuVachhani closed 1 month ago

BirjuVachhani commented 10 months ago

I am getting this error when running following command to build exe for Windows!

flutter_distributor package --platform windows --targets exe --artifact-name=TargetMate-windows-0.6.6.exe

Crash:

Unhandled exception:
BuildError
BuildError
#0      AppBuilder.build (package:flutter_app_builder/src/builders/app_builder.dart:68:7)
#0      AppBuilder.build (package:flutter_app_builder/src/builders/app_builder.dart:68:7)
<asynchronous suspension>
#1      FlutterDistributor.package (package:flutter_distributor/src/flutter_distributor.dart:154:27)
<asynchronous suspension>
<asynchronous suspension>
#1      FlutterDistributor.package (package:flutter_distributor/src/flutter_distributor.dart:154:27)
#2      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
<asynchronous suspension>
#2      CommandRunner.runCommand (package:args/command_runner.dart:212:13)

<asynchronous suspension>
lijy91 commented 10 months ago

Can you provide your configuration file

BirjuVachhani commented 10 months ago

This was working before I added rive as dependency! So tried after removing Rive and it seems to be working just fine now! I guess it may not have anything to do with this package but it is interesting how this package throws because of it!