Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README: added pyinstaller command for mac osx #147

Merged
merged 3 commits into from
Mar 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add the necessary steps before the command used to generate the executable. Like we did for Windows

Follow these steps to generate the executable for Windows.

  1. Run these commands
cd path/to/dot
conda activate dot
  1. Get the path of the site-packages by running this command
python -c "import site; print(''.join(site.getsitepackages()))"
  1. Replace path/to/site-packages with the path of the site-packages and run this command

```
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`.
Loading