SpaceBridgeX / scripts /pack-extension.ps1
sarransh's picture
Upload folder using huggingface_hub
528c6f5 verified
Raw History Blame Contribute Delete
583 Bytes
# 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