Convert Python3.7 to exe

Asked

Viewed 508 times

0

I am creating a "game" with no graphical interface, to distract me from that accustomed programming of everyday life. Using Python3.7.0 and Sqlite3.

I would like to 'protect' the game’s source code so that no changes can be made that circumvent game steps.

The only way I can do this I believe is to turn the Python file into an executable, as I can turn to a . exe ??

  • There is a bug, then for this version. Duplicate of this answer

  • Hello @Carlos Pereira, if you are using a known engine, such as coconuts 2d, Unity and etc. You have to check which files should be placed in the code deploy in order to work properly, some Engings already give you the step by step to make the correct deploy.

1 answer

0


You can use modules like Pyinstaller, py2exe, cxfreeze... among others.

How to turn a . py into a . exe?

https://stackoverflow.com/questions/10592913/how-do-i-convert-a-python-program-to-a-runnable-exe-windows-program

https://stackoverflow.com/questions/14165398/a-good-python-to-exe-compiler

Even though your code is still vulnerable to disassembling, what you can do is obfuscate your code, using variables that hinder understanding, breaking readability, using different characters and etc without impacting the codes.

There are tools that do this automatically, I do not know if it is applicable to what you want, but it is good I comment on.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.