# PlyCompiler

PlyCompiler is the local Windows companion app for Ply.

The web app can run on Hostinger and export a portable `.ply` package. PlyCompiler runs on the user's Windows machine, where Microsoft C++ Build Tools, CMake and bundled JUCE create the real `.vst3` bundle.

## Build

```powershell
.\build.ps1
```

Output:

```text
build\Release\PlyCompiler.exe
```

## Release ZIP

```powershell
.\release.cmd
```

Output:

```text
dist\PlyCompiler-Kaykesoft.zip
```

The release script adds Kaykesoft Windows metadata and creates a distributable folder. Code signing is optional and only runs when a real certificate exists:

```powershell
$env:KAYKESOFT_CODESIGN_PFX="C:\path\kaykesoft-codesign.pfx"
$env:KAYKESOFT_CODESIGN_PASS="certificate-password"
.\release.cmd
```

Without a certificate, the executable is intentionally left unsigned.

## Current Test Version

- Native Win32 graphical app.
- Drag and drop `.ply` packages.
- Browse for a `.ply` package.
- Select output folder.
- Detects CMake, bundled JUCE and Microsoft C++ Build Tools.
- Includes `.ply-runtime/vendor/JUCE` and the internal builder in the release package.
- Includes a guided "Preparar entorno C++" helper for users who do not have Microsoft C++ Build Tools installed.
- Extracts `.ply`, generates a temporary JUCE project, builds Release VST3 and copies the `.vst3` bundle to the selected output folder.

The first compile can take several minutes because JUCE and the generated plugin are compiled locally.
