================================================================================
  AI Maketing Facebook — Hướng dẫn cài đặt bản đóng gói
  macOS + Windows
================================================================================

A) macOS
--------
1. Mở file:  AI_Maketing_Facebook_macOS.dmg
2. Kéo "AI Maketing Facebook.app" vào thư mục Applications
3. Lần đầu mở: Chuột phải app → Open (bỏ qua Gatekeeper nếu macOS chặn)
4. Nếu thiếu Chromium (Playwright):
     - Cài Python 3.10+ (brew install python)
     - Chạy Terminal:
         export PLAYWRIGHT_BROWSERS_PATH="$HOME/Library/Caches/ms-playwright"
         python3 -m pip install playwright
         python3 -m playwright install chromium
5. Hotline Zalo: 0379376177


B) Windows 10/11
----------------
Cách 1 — File Setup (nếu có AI_Maketing_Facebook_Setup_Windows.exe)
  1. Chạy Setup, chọn thư mục cài
  2. Mở shortcut "AI Maketing Facebook"
  3. Nếu thiếu browser: đợi app báo hoặc chạy:
       pip install playwright
       set PLAYWRIGHT_BROWSERS_PATH=%LOCALAPPDATA%\ms-playwright
       python -m playwright install chromium

Cách 2 — Bản ZIP (AI_Maketing_Facebook_Windows.zip)
  1. Giải nén thư mục AI_Maketing_Facebook
  2. Chạy CHAY_APP.cmd hoặc AI_Maketing_Facebook.exe
  3. Không xóa file/thư mục trong folder (cần để chạy)


C) Build lại từ mã nguồn (dev)
------------------------------
macOS:
  chmod +x packaging/build_macos.sh
  ./packaging/build_macos.sh

Windows (PowerShell Admin optional):
  packaging\CAI_DAT_WINDOWS.cmd
  hoặc:
  powershell -ExecutionPolicy Bypass -File packaging\build_windows.ps1

Yêu cầu build:
  - Python 3.10+
  - pip install -r requirements.txt pyinstaller
  - Windows: Inno Setup 6 (tuỳ chọn, tạo file Setup.exe)


D) Lưu ý
--------
- Dữ liệu nick/proxy lưu cạnh app (accounts_v9.json, proxies_v9.json…)
- Bản đóng gói kết nối license online: https://aurexislab.com
- 1 tài khoản app = 1 máy
- Không chia sẻ file session_v10.json / machine_id.txt

================================================================================
Zalo hỗ trợ 24/7: 0379376177
================================================================================
