-
Notifications
You must be signed in to change notification settings - Fork 410
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update config path * Add windows 10 executable * pyinstaller in reqs * Update link * Create docs for generating executable * Update CHANGELOG.md * Update CHANGELOG.md * Add steps to generate the executable
- Loading branch information
1 parent
70eff88
commit 94f3938
Showing
6 changed files
with
58 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Create executable | ||
|
||
Create an executable of dot for different OS. | ||
|
||
## Windows | ||
|
||
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 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`. | ||
|
||
## Ubuntu | ||
|
||
ToDo | ||
|
||
## Mac | ||
|
||
ToDo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,7 @@ dev = | |
ipython | ||
isort==5.12.0 | ||
pre-commit | ||
pyinstaller | ||
pytest | ||
pytest-cov | ||
types-PyYAML | ||
|