# MetaFixer — Sell korar guide (Windows)

## Ekbar korte hobe (setup)

### 1. License server upload (apnar hosting-e)
1. `license-server` folder-er file gulo hosting-e `public_html/license/` folder-e upload korun (cPanel > File Manager).
2. `config.php` open kore **`admin_password`** change korun.
3. Browser-e `https://APNAR-DOMAIN.com/license/check.php` kholun. Sob ✅ hote hobe.
   - sodium / pdo_sqlite ❌ hole: cPanel > **Select PHP Version > Extensions** theke tick din.
   - HTTPS ❌ hole: cPanel-e free SSL (AutoSSL) on korun.
4. Sob ✅ hole `check.php` **delete** korun.
5. Admin panel: `https://APNAR-DOMAIN.com/license/admin.php`

### 2. App-e server address boshano
`metafixer\license_config.py` edit korun:
- `LICENSE_API_URL = "https://APNAR-DOMAIN.com/license/api.php"`
- `BUY_URL` (apnar website/pricing page), `WHATSAPP_URL` (optional)
- `PUBLIC_KEY_B64` age thekei bosano ache (server-er key-r sathe mile).

### 3. Setup file banano (Windows PC-te)
1. Python 3.12 install (tick: *Add python.exe to PATH*) + **Inno Setup 6** install (jrsoftware.org/isdl.php).
2. `build-installer.bat` double-click.
3. Shesh hole `installer-output\MetaFixer-Setup-1.3.0.exe` pabenn. **Eta-i customer-ke dibe.**

## Prottek sale-er por
1. Customer bKash/Nagad/bank-e pay kore (ba apnar website-e).
2. Admin panel > **Create license keys** > plan select (1 Month / 1 Year / Lifetime) > Create.
3. Key (`MFXR-XXXX-XXXX-XXXX-XXXX`) customer-ke WhatsApp-e pathan.
4. Customer app-e key boshale plan shuru hobe. **Plan-er somoy activate korar din theke gonna hoy.**

## Customer-er shomoshha
| Shomoshha | Ki korben |
|---|---|
| PC change / Windows reinstall | Admin panel > oi key-r **Reset PCs** |
| Key hariye geche | Admin panel-e key khuje abar pathan |
| Refund / chargeback | **Disable** (app 72 ghonta-r moddhe lock hoy) |
| Plan barate chai | **+days** button |
| Trial abar dite chai | Trials list > **Reset trial** |

## Ki ki kaj kore
- **30 minute free trial:** somoy **server** gonne, tai app uninstall/reinstall korle reset hoy na.
- **Expiry:** 1 month = 30 din, 1 year = 365 din, lifetime = kokhono na.
- **Offline:** paid license internet chhara 72 ghonta cholbe, tarpor internet lagbe.
- **1 key = 1 PC** (`config.php`-te `default_max_devices` ba key banate PC sonkha thik korun).
- Date/time pichhone ghurale (clock rollback) app lock hoy.

## Sotyi kotha (nirapotta)
- Python app **100% crack-proof na**. Server-check thaka-y shadharon manush pirate korte parbe na, tobe expert hole app patch korte pare. Bhalo protection chai hole pore Nuitka diye compile kora jay.
- `config.php` ar secret key **kokhono** customer-ke diben na, installer-e dhukben na.
- Windows 10/11 (64-bit) e cholbe. Windows 7/8 er jonno alada build lagbe.
- Antivirus kokhono kokhono notun .exe-ke sandeho kore (PyInstaller-er common shomoshha). Code-signing certificate hole kome.
- Customer-der **nijer AI API key** lagbe (Gemini free key diye shuru kora jay). Speed-er boro karon provider-er rate limit: 1 ta free key-te ~10 file/minute. Paid key ba ekadhik provider-er key dile speed barbe.
