Two Steps To Turn A Python Script Into A macOS Application Installer
<p>Recently, I built a metronome software using Python. I can’t wait to share it with my friends. However, I realized a troublesome fact: this software can’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 <code>xxx.py</code>into an application bundle <code>xxx.app</code> ;</li>
<li>Building the bundle <code>xxx.app</code> 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 <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>