Skip to content

Commit 9045c54

Browse files
committed
Add virtual environment instructions
1 parent 0eaa54e commit 9045c54

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ If you need help with anything you can contact the creator of this repository di
4141

4242
### Windows
4343

44-
`pyinstaller --noconsole --onefile --icon="Media/legacy-mod-converter.ico" --collect-all="cortex_command_mod_converter_engine" --add-data="Media/github-icon.png;Media" --add-data="Media/discord-icon.png;Media" --add-data="Media/finish.wav;Media" --add-data="I:/Programming/Cortex-Command-Mod-Converter-Engine/src/cortex_command_mod_converter_engine/stylua_executables/windows/stylua.exe;windows" --name="Legacy Mod Converter" main.py`
44+
Using a virtual environment brings the executable down from 34 MB to 29 MB.
45+
This is important to keep the zip under GitHub's 25 MB limit!
46+
47+
1. `./virtual_environment/Scripts/activate.bat`
48+
2. `./virtual_environment/Scripts/python.exe -m pip install -r requirements.txt`
49+
3. `I:/programming/python/cc-legacy-mod-converter/virtual_environment/Scripts/pyinstaller --noconsole --onefile --icon="Media/legacy-mod-converter.ico" --collect-all="cortex_command_mod_converter_engine" --add-data="Media/github-icon.png;Media" --add-data="Media/discord-icon.png;Media" --add-data="Media/finish.wav;Media" --add-data="I:/Programming/Cortex-Command-Mod-Converter-Engine/src/cortex_command_mod_converter_engine/stylua_executables/windows/stylua.exe;windows" --name="Legacy Mod Converter" main.py`
50+
4. `./virtual_environment/Scripts/deactivate.bat`
4551

4652
### Linux
4753

0 commit comments

Comments
 (0)