Export program as executable file - Corne2Plum3/fnf2osumania GitHub Wiki
Export program as executable file
We will use PyInstaller to export the program. If you don't have this library, install using pip:
pip install pyinstaller
Windows
You must be in a Windows operating system to perform the export to .exe.
Scripted method (v1.3.2+)
The version 1.3.2 adds a python script that does all of the step in the "Manual method below".
-
Open the terminal where there is
main.pyand execute.python .\build_win_exe.py(if this is not working try to replace
pythonbypython3) -
The generated .zip appears on the current working directory.
Manual method
- Open the terminal where there is
main.py. Then:pyinstaller -w main.py - In the generated folder
dist, you will find a folder calledmainwhich contains all files of the program. Rename it with the name of the program and addconfig.jsonandnothing2.oggfiles here. - Create a empty folder in this folder
mainand call itoutput. - Then export the folder
mainas a.zipfile. Now the program can be exported and used by everyone.
Linux
TO DO