F, -onefileĜreate a one-file bundled executable. D, -onedirĜreate a one-folder bundle containing an executable (default) LEVEL may be one of TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL (default: INFO). cleanĜlean PyInstaller cache and remove temporary files before building.Īmount of detail in build-time console messages. a, -asciiĝo not include unicode encoding support (default: included if available) Path to UPX utility (default: search the execution path) Replace output directory (default: SPECPATH/dist/SPECNAME) without asking for confirmation Where to put all the temporary work files. distpath DIR Where to put the bundled app (default. v, -version Show program version info and exit. h, -help show this help message and exit
Pyinstaller "C:\Documents and Settings\project\myscript.spec" Pyinstaller options… ~/myproject/source/myscript.py You may give a path to the script or spec file, for example Only a few command-line options have an effect when building from a spec file. You typically do not need to specify any options when running pyinstaller with the spec file. The myscript.spec file contains most of the information provided by the options that were specified when pyinstaller (or pyi-makespec) was run with the script file as the argument. After you do this, you name the spec file to PyInstaller instead of the script:
#Nier automata pc or ps4 code#
Its code is the first to execute at run-time.įor certain uses you may edit the contents of myscript.spec (described under Using Spec Files). However, the first script named supplies the name for the spec file and for the executable folder or file. If you name more, all are analyzed and included in the output. Normally you name one script on the command line. In the dist folder you find the bundled app you distribute to your users. Writes the myscript executable folder in the dist folder. Writes some log files and working files in the build folder.Ĭreates a folder dist in the same folder as the script if it does not exist. Writes myscript.spec in the same folder as the script.Ĭreates a folder build in the same folder as the script if it does not exist. In the most simple case, set the current directory to the location of your program myscript.py and execute:
The syntax of the pyinstaller command is: