From 1108032cc7ee0c63014edad43a4728332bfb6020 Mon Sep 17 00:00:00 2001 From: Vasileios Papadopoulos Date: Fri, 1 Mar 2024 15:38:23 +0200 Subject: [PATCH] step by step instructions --- docs/create_executable.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/create_executable.md b/docs/create_executable.md index 6c23efe..d35154c 100644 --- a/docs/create_executable.md +++ b/docs/create_executable.md @@ -32,6 +32,22 @@ The executable files can be found under the folder `dist`. ToDo ## Mac +Follow these steps to generate the executable for Windows. + +1. Run these commands + +``` +cd path/to/dot +conda activate dot +``` + +2. Get the path of the `site-packages` by running this command + +``` +python -c "import site; print(''.join(site.getsitepackages()))" +``` + +3. Replace `path/to/site-packages` with the path of the `site-packages` and run this comman ``` pyinstaller --noconfirm --onedir --name "dot" --add-data "src/dot/fomm/config:dot/fomm/config" --add-data "src/dot/simswap/models:dot/simswap/models" --add-data "path/to/site-packages:." --add-data "configs:configs/" --add-data "data:data/" --add-data "saved_models:saved_models/" src/dot/ui/ui.py