@echo off
echo Building 2059 Search Extension Installer...
echo.

REM Delete old files if they exist
if exist "2059.crx" del "2059.crx"
if exist "2059.zip" del "2059.zip"
if exist "key.pem" del "key.pem"

REM Create ZIP file from all contents in current directory
powershell -Command "Compress-Archive -Path '.\*' -DestinationPath '2059.zip' -Force"

echo.
echo File 2059.zip has been created successfully.
echo.
echo To install in Chrome:
echo 1. Go to chrome://extensions/
echo 2. Enable Developer mode (toggle in top-right)
echo 3. Click "Load unpacked" button
echo 4. Select the 2059-search folder
echo.
echo Press any key to close this window...
pause