Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build Deskription #36

Closed
Moon-Mind opened this issue Jan 6, 2025 · 3 comments
Closed

build Deskription #36

Moon-Mind opened this issue Jan 6, 2025 · 3 comments

Comments

@Moon-Mind
Copy link

i have a hard time Building your App

tanks

@Merrit
Copy link
Owner

Merrit commented Jan 6, 2025

Please give these instructions a try:


Requirements

  1. Requires a working instance of Flutter.

  2. Linux requires libappindicator and keybinder.

    Fedora:

    sudo dnf install libappindicator-gtk3 libappindicator-gtk3-devel keybinder keybinder3 keybinder3-devel
    

    Ubuntu:

    sudo apt-get install appindicator3-0.1 libappindicator3-dev keybinder-3.0
    

Build

Run these commands from the root directory of the repo:

  1. flutter clean
  2. flutter pub get
  3. dart run build_runner build --delete-conflicting-outputs
  4. flutter pub run easy_localization:generate --source-dir translations --output-dir lib/generated --output-file locale_keys.g.dart --format keys --skip-unnecessary-keys
  5. flutter build linux or flutter build windows

Compiled app location:

Linux: build/linux/x64/release/bundle

Windows: build\windows\runner\Release

@Moon-Mind
Copy link
Author

Moon-Mind commented Jan 8, 2025

do i need to generate the file my self ?

lib/src/app.dart(12,8): error GFAA2A68C: Error when reading 'lib/generated/locale_keys.g.dart': Das System kann die angegebene Datei nicht finden. [C:\Users\**************\Development\Android\adventure_list\build\windows\x64\flutter\flutter_assemble.vcxproj]

@Merrit
Copy link
Owner

Merrit commented Jan 8, 2025

Sorry, forgot to include that generate command. Also run this:

flutter pub run easy_localization:generate --source-dir translations --output-dir lib/generated --output-file locale_keys.g.dart --format keys --skip-unnecessary-keys

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants