mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-23 09:56:23 +03:00
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
== Yubico Authenticator for Desktop
|
|
|
|
=== Requirements
|
|
You will need the Flutter SDK with enabled desktop support, see:
|
|
https://flutter.dev/desktop
|
|
|
|
Development has been done using the "Install from git" method of installing the
|
|
SDK, from the "beta" channel.
|
|
|
|
You will also need to provide a compiled version of ykman-rpc, as described in
|
|
the next section.
|
|
|
|
|
|
=== Building ykman-rpc
|
|
Requirements: Python >= 3.8 and Poetry.
|
|
|
|
The GUI requires a compiled version of ykman-rpc to run, which is built from
|
|
the sources in ykman-rpc/ in this repository. This needs to be build prior to
|
|
running `flutter build` or `flutter run`, by running `build-ykman.sh` (or
|
|
`build-ykman.bat` on Windows).
|
|
|
|
NOTE: You will need to re-run `ykman-build.sh` if changes have been made to
|
|
ykman-rpc's code, or if `flutter clean` has been run.
|
|
|
|
|
|
=== Running the app
|
|
To start the app, run:
|
|
|
|
flutter run -d <os>
|
|
|
|
where <os> is "windows", "macos", or "linux". You can add the `--release` flag
|
|
to run a release build instead of debug. Builds of the app will be create under
|
|
`build/<os>/`.
|
|
|
|
|
|
=== Running tests
|
|
Tests can be run with the command:
|
|
|
|
flutter test
|
|
|
|
|
|
=== Packaging for MacOS
|
|
See link:doc/MacOS_Packaging.adoc[MacOS Packaging].
|