From 39ecf7c617c75a97b8f9e33dfca7813958191acb Mon Sep 17 00:00:00 2001 From: insleker Date: Tue, 2 Sep 2025 18:28:09 +0800 Subject: [PATCH] docs: update document to build web and linux --- README.md | 22 +++++++++++++++++-- ...he_signature_on_page_is_shown_on_page.dart | 8 +++++-- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d1362a7..0b78121 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ A GUI app to create signatures on PDF pages interactively. checkout [`docs/FRs.md`](docs/FRs.md) -## Build +## run ```bash # flutter clean @@ -22,8 +22,26 @@ flutter run # run unit tests and widget tests flutter test +``` -flutter build +### build + +For Windows +```bash +flutter build windows # create windows installer flutter pub run msix:create ``` + +For web +```bash +flutter build web +``` +Open the `index.html` file in the `build/web` directory. Remove the `` to ensure proper routing on GitHub Pages. + +For Linux +```bash +flutter build linux +cp -r build/linux/x64/release/bundle/ AppDir +appimagetool-x86_64.AppImage AppDir +``` diff --git a/test/features/step/the_signature_on_page_is_shown_on_page.dart b/test/features/step/the_signature_on_page_is_shown_on_page.dart index a781d63..7f785f7 100644 --- a/test/features/step/the_signature_on_page_is_shown_on_page.dart +++ b/test/features/step/the_signature_on_page_is_shown_on_page.dart @@ -11,8 +11,12 @@ Future theSignatureOnPageIsShownOnPage( ) async { final container = TestWorld.container ?? ProviderContainer(); TestWorld.container = container; - final srcList = container.read(pdfProvider.notifier).placementsOn(sourcePage.toInt()); - final tgtList = container.read(pdfProvider.notifier).placementsOn(targetPage.toInt()); + final srcList = container + .read(pdfProvider.notifier) + .placementsOn(sourcePage.toInt()); + final tgtList = container + .read(pdfProvider.notifier) + .placementsOn(targetPage.toInt()); // At least one exists on both expect(srcList, isNotEmpty); expect(tgtList, isNotEmpty);