$ pyinstaller script.py <spanclass="hljs-comment"># Compiles into './dist/script' directory.</span>
$ pyinstaller script.py --onefile <spanclass="hljs-comment"># Compiles into './dist/script' console app.</span>
$ pyinstaller script.py --windowed <spanclass="hljs-comment"># Compiles into './dist/script' windowed app.</span>
$ pyinstaller script.py --add-data <spanclass="hljs-string">'<path>:.'</span><spanclass="hljs-comment"># Adds file to the root of the executable.</span>
</code></pre></div></div>
$ pyinstaller script.py --add-data '<path>:.' <spanclass="hljs-comment"># Adds file to the root of the executable.</span>