From e9c48317f85e3374b9be1c46f9c0fa6cd2a58a44 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Mon, 21 Dec 2020 15:03:01 +0100 Subject: [PATCH] Comment in Readme --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d657ae..875a188 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,12 @@ The installation in Windows can be done, though it is quite elaborate: * `git submodules update` * `cargo build --lib --release` + Download dll from https://git.rubenvandeven.com/r/visualhaar/releases ++ Fetch `SourceSansPro-Regular.ttf` from the internet + Make the installer: - * `& 'C:\Users\DP Medialab\AppData\Roaming\Python\Python38\Scripts\pyinstaller.exe' .\mirror.py --add-binary '.\visualhaar\target\release\visual_haarcascades_lib.dll;.' --add-data '.\haarcascade_frontalface_alt2.xml;.' --add-data '.\SourceSansPro-Regular.ttf;.' --add-data 'dnn;dnn'` + * Either one of: + * `& 'C:\Users\DP Medialab\AppData\Roaming\Python\Python38\Scripts\pyinstaller.exe' .\mirror.py --add-binary '.\visualhaar\target\release\visual_haarcascades_lib.dll;.' --add-data '.\haarcascade_frontalface_alt2.xml;.' --add-data '.\SourceSansPro-Regular.ttf;.' --add-data 'dnn;dnn'` + * `& '.\venv\Scripts\pyinstaller.exe' .\mirror.py --add-binary '.\visualhaar\target\release\visual_haarcascades_lib.dll;.' --add-data '.\haarcascade_frontalface_alt2.xml;.' --add-data '.\SourceSansPro-Regular.ttf;.' --add-data 'dnn;dnn'` + * `mv '.\dist\mirror\mpl-data' '.\dist\mirror\matplotlib\'` * `Compress-Archive -LiteralPath .\dist\mirror -DestinationPath .\dist\mirror.zip` + We could also [use wine for cross compilation](https://www.andreafortuna.org/2017/12/27/how-to-cross-compile-a-python-script-into-a-windows-executable-on-linux/) from Linux