# pack-extension.ps1 # This script zips the extension folder into extension.zip in the root directory. # Run this every time you want to push a new version to your site. $ExtensionDir = "extension" $OutputFile = "extension.zip" if (Test-Path $OutputFile) { Remove-Item $OutputFile } Write-Host "Zipping extension folder..." -ForegroundColor Cyan Compress-Archive -Path $ExtensionDir\* -DestinationPath $OutputFile Write-Host "Success! $OutputFile created." -ForegroundColor Green Write-Host "Now deploy this zip file to your server (ROOT directory)." -ForegroundColor Yellow