Merrit / nyrna

Suspend games and applications.
https://nyrna.merritt.codes
GNU General Public License v3.0
950 stars 17 forks source link

Error in build v2.13.0 #169

Closed Radeox closed 1 year ago

Radeox commented 1 year ago

I've tried to build the new version to update the AUR package but it return a huge list of errors. Is something missing or not getting generated correctly?

Complete error list: nyrna-build.md

ERROR: lib/settings/cubit/settings_cubit.dart:16:6: Error: Error when reading 'lib/settings/cubit/settings_cubit.freezed.dart': No such file or directory
ERROR: part 'settings_cubit.freezed.dart';
ERROR:      ^
ERROR: lib/native_platform/src/window.dart:5:6: Error: Error when reading 'lib/native_platform/src/window.freezed.dart': No such file or directory
ERROR: part 'window.freezed.dart';
ERROR:      ^
ERROR: lib/app/cubit/app_cubit.dart:14:6: Error: Error when reading 'lib/app/cubit/app_cubit.freezed.dart': No such file or directory
ERROR: part 'app_cubit.freezed.dart';
ERROR:      ^
ERROR: lib/apps_list/cubit/apps_list_cubit.dart:18:6: Error: Error when reading 'lib/apps_list/cubit/apps_list_cubit.freezed.dart': No such file or directory
ERROR: part 'apps_list_cubit.freezed.dart';
ERROR:      ^
ERROR: lib/logs/cubit/log_cubit.dart:7:6: Error: Error when reading 'lib/logs/cubit/log_cubit.freezed.dart': No such file or directory
ERROR: part 'log_cubit.freezed.dart';
...
Merrit commented 1 year ago

The codebase now does some code generation, which needs to be done before building.

First:

dart run build_runner build --delete-conflicting-outputs

Then after you can build:

flutter build linux

I will update BUILDING.md with this info.. I hope that helps. :rainbow:

Radeox commented 1 year ago

It builds correctly 👍🏻 I've updated the AUR package now. Thank you 😄