danila-schelkov / scw-tool

3d models converter (Supercell .scw, COLLADA and other)
GNU General Public License v3.0
33 stars 6 forks source link

Put everything in a single executable (.exe) #12

Open sT-anim opened 1 year ago

sT-anim commented 1 year ago

Is your feature request related to a problem? Please describe. Yes. Before the app didn't work everywhere. Now wherever you run it it will work :)

Describe the solution you'd like You can add use the file in Release assets.

Describe alternatives you've considered You still can use just virtual environments instead of this. But people like (.exe)'s more than a bunch of scripts and folders 😅

Additional context The (.exe) can be found on my Google Drive. https://drive.google.com/file/d/1RGr3yjso2YdkWlIyNaLfEHyeA4sAUtpS/view?usp=sharing

danila-schelkov commented 1 year ago

I will upload it in Release assets, but before i need to know how did you do the exe file?

sT-anim commented 1 year ago

I will upload it in Release assets, but before i need to know how did you do the exe file?

I used PyInstaller. If you need, I can give some instructions about how I got this

danila-schelkov commented 1 year ago

I would be glad

sT-anim commented 1 year ago

I would be glad

Okay! First, create a virtual environment, or create a new project in PyCharm (if you have it installed).

Then, activate the virtual environment (if you didn't make a project in PyCharm) and bring the main.py file to the directory where you made the virtual environment (NOT INSIDE "venv" FOLDER!).

After that, just use this in the virtual environment's local terminal pip install pyinstaller Then type in the terminal this: pyinstaller main.py --onefile

Wait a little bit, if everything is ok, in "dist" folder you'll find your executable!

Useful links: Create a virtual environment: https://docs.python.org/3/library/venv.html Download PyCharm: https://www.jetbrains.com/pycharm/download/ Create a project in PyCharm: https://www.jetbrains.com/help/pycharm/creating-empty-project.html More about PyInstaller: https://pyinstaller.org/en/stable/