Two Steps To Turn A Python Script Into A macOS Application Installer

<p>Recently, I built a metronome software using Python. I can&rsquo;t wait to share it with my friends. However, I realized a troublesome fact: this software can&rsquo;t run on other computers unless Python is installed. Obviously, this kind of thing is not acceptable. I need an elegant way like drag-and-drop installation on macOS.</p> <p>To turn a Python script into a stand-alone macOS application installer, it turns out that only two steps need to be done.</p> <ol> <li>Convert a Python script&nbsp;<code>xxx.py</code>into an application bundle&nbsp;<code>xxx.app</code>&nbsp;;</li> <li>Building the bundle&nbsp;<code>xxx.app</code>&nbsp;into a disk image.</li> </ol> <h2>Converting a Python script into an application bundle</h2> <p>PyInstaller is used to make the application bundle. You can install it easily by using&nbsp;<code>pip install pyinstaller</code>. There are some differences depending on your Python program.</p> <p><a href="https://medium.com/@jackhuang.wz/in-just-two-steps-you-can-turn-a-python-script-into-a-macos-application-installer-6e21bce2ee71"><strong>Learn More</strong></a></p>