# Packing the Python code

Tutorial: https://medium.com/@moraneus/crafting-a-standalone-executable-with-pyinstaller-f9a99ea24432

## 1. Install the PyInstaller package

```bash
pip install pyinstaller
```

## 2. Create the EXE file for Windows

```bash
pyinstaller --onefile --noconsole --add-data "ads;ads" --icon spotify_logo_icon_189218.ico --name spotify_installer_win64 adware.py
```

| Parameter         | Purpose                                                                                      |
|-------------------|----------------------------------------------------------------------------------------------|
|`--onefile`        | Bundles everything into a single standalone executable file.                                 |
|`--noconsole`      | Suppresses the console window; creates a GUI-only app (no black terminal box appears).       |
|`--add-data`       | Includes additional files or folders inside the build (here, the "ads" directory).           |
|`--icon`           | Sets a custom icon for the executable (.ico file for Windows).                               |
|`--name`           | Specifies the filename for the generated executable.                                         |
