From d90c0830b38810b296457064f66a01823142a293 Mon Sep 17 00:00:00 2001 From: Vasileios Papadopoulos Date: Fri, 1 Mar 2024 16:02:42 +0200 Subject: [PATCH] README: added pyinstaller command for mac osx (#147) --- docs/create_executable.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/create_executable.md b/docs/create_executable.md index c339997..2a8dbd6 100644 --- a/docs/create_executable.md +++ b/docs/create_executable.md @@ -32,5 +32,25 @@ The executable files can be found under the folder `dist`. ToDo ## Mac +Follow these steps to generate the executable for Mac. -ToDo +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 +``` + +The executable files can be found under the folder `dist`.