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