docs: update document to build web and linux
This commit is contained in:
parent
5ae266d008
commit
39ecf7c617
22
README.md
22
README.md
|
@ -6,7 +6,7 @@ A GUI app to create signatures on PDF pages interactively.
|
||||||
|
|
||||||
checkout [`docs/FRs.md`](docs/FRs.md)
|
checkout [`docs/FRs.md`](docs/FRs.md)
|
||||||
|
|
||||||
## Build
|
## run
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# flutter clean
|
# flutter clean
|
||||||
|
@ -22,8 +22,26 @@ flutter run
|
||||||
|
|
||||||
# run unit tests and widget tests
|
# run unit tests and widget tests
|
||||||
flutter test
|
flutter test
|
||||||
|
```
|
||||||
|
|
||||||
flutter build
|
### build
|
||||||
|
|
||||||
|
For Windows
|
||||||
|
```bash
|
||||||
|
flutter build windows
|
||||||
# create windows installer
|
# create windows installer
|
||||||
flutter pub run msix:create
|
flutter pub run msix:create
|
||||||
```
|
```
|
||||||
|
|
||||||
|
For web
|
||||||
|
```bash
|
||||||
|
flutter build web
|
||||||
|
```
|
||||||
|
Open the `index.html` file in the `build/web` directory. Remove the `<base href="/">` 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
|
||||||
|
```
|
||||||
|
|
|
@ -11,8 +11,12 @@ Future<void> theSignatureOnPageIsShownOnPage(
|
||||||
) async {
|
) async {
|
||||||
final container = TestWorld.container ?? ProviderContainer();
|
final container = TestWorld.container ?? ProviderContainer();
|
||||||
TestWorld.container = container;
|
TestWorld.container = container;
|
||||||
final srcList = container.read(pdfProvider.notifier).placementsOn(sourcePage.toInt());
|
final srcList = container
|
||||||
final tgtList = container.read(pdfProvider.notifier).placementsOn(targetPage.toInt());
|
.read(pdfProvider.notifier)
|
||||||
|
.placementsOn(sourcePage.toInt());
|
||||||
|
final tgtList = container
|
||||||
|
.read(pdfProvider.notifier)
|
||||||
|
.placementsOn(targetPage.toInt());
|
||||||
// At least one exists on both
|
// At least one exists on both
|
||||||
expect(srcList, isNotEmpty);
|
expect(srcList, isNotEmpty);
|
||||||
expect(tgtList, isNotEmpty);
|
expect(tgtList, isNotEmpty);
|
||||||
|
|
Loading…
Reference in New Issue