Skip to content

Commit

Permalink
step by step instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilispapadop committed Mar 1, 2024
1 parent e7400ee commit 1108032
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/create_executable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1108032

Please sign in to comment.