Skip to content

Building and Signing

CaptainDario edited this page Oct 18, 2022 · 12 revisions

Windows

note: because tf lite flutter is being used, the windows.dll in the blobs directory needs to be copied to the release folder of the .exe

To build a .exe

flutter build windows --release

To build a MSIX

flutter pub run msix:create 

To build a MSIX (for publishing to the Microsoft Store) without rebuilding the .exe

flutter pub run msix:create --build-windows=false --store

Build can be found at: DaKanji-Application\build\windows\runner\

Android

To build the app as app bundle just invoke

flutter build appbundle

To obfuscate, save the symbol files and build the app.

flutter build appbundle --obfuscate --split-debug-info=obfuscate_debug_info

To build an fat apk:

flutter build apk --obfuscate --split-debug-info=obfuscate_debug_info

and platform dependent, smaller apk's:

Build can be found at: DaKanji-Application\build\app\outputs

Signing for Android

The key.properties file should be placed in the android folder.

And the DaKanjiRecognizer.jks file should be placed in the keys folder

Linux

There is no snapcraft.yaml provided but it can be generated by running

python .github/workflows/create_snapcraft_yaml.py

A snap can then be build by

snapcraft --use-lxd

Clone this wiki locally