Spaces:
Paused
Paused
Download scripts/pack-extension.ps1 from sarransh/SpaceBridgeX: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/spaces/sarransh/SpaceBridgeX/resolve/main/scripts/pack-extension.ps1
- Command line
-
hf download hf://spaces/sarransh/SpaceBridgeX/scripts/pack-extension.ps1
-
curl -L -o pack-extension.ps1 https://huggingface.co/spaces/sarransh/SpaceBridgeX/resolve/main/scripts/pack-extension.ps1
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 | |