Skip to content

Commit

Permalink
README: added pyinstaller command for mac osx (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
vassilispapadop authored Mar 1, 2024
1 parent e0ad5cd commit d90c083
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/create_executable.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit d90c083

Please sign in to comment.