mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 07:19:35 +00:00
26 lines
1.4 KiB
PowerShell
26 lines
1.4 KiB
PowerShell
# Builds dealix-marketing-bundle.zip: sales_assets + presentations/dealix-2026-sectors
|
|
# Run from repo: .\salesflow-saas\scripts\package_dealix_marketing_assets.ps1
|
|
$ErrorActionPreference = "Stop"
|
|
$Root = Split-Path -Parent (Split-Path -Parent $PSScriptRoot)
|
|
if (-not (Test-Path "$Root\salesflow-saas\sales_assets")) {
|
|
Write-Error "Expected salesflow-saas\sales_assets under $Root"
|
|
}
|
|
$OutZip = Join-Path $Root "salesflow-saas\sales_assets\dealix-marketing-bundle.zip"
|
|
$Staging = Join-Path $env:TEMP ("dealix-bundle-" + [Guid]::NewGuid().ToString())
|
|
New-Item -ItemType Directory -Path $Staging -Force | Out-Null
|
|
try {
|
|
Copy-Item -Path "$Root\salesflow-saas\sales_assets" -Destination (Join-Path $Staging "sales_assets") -Recurse -Force
|
|
Remove-Item (Join-Path $Staging "sales_assets\dealix-marketing-bundle.zip") -Force -ErrorAction SilentlyContinue
|
|
$PresSrc = "$Root\salesflow-saas\presentations\dealix-2026-sectors"
|
|
if (Test-Path $PresSrc) {
|
|
Copy-Item -Path $PresSrc -Destination (Join-Path $Staging "presentations-dealix-2026-sectors") -Recurse -Force
|
|
}
|
|
if (Test-Path $OutZip) { Remove-Item $OutZip -Force }
|
|
Compress-Archive -Path (Join-Path $Staging "*") -DestinationPath $OutZip -CompressionLevel Optimal
|
|
Write-Host "OK: $OutZip"
|
|
(Get-Item $OutZip).Length / 1MB | ForEach-Object { Write-Host ("Size MB: {0:N2}" -f $_) }
|
|
}
|
|
finally {
|
|
Remove-Item -Path $Staging -Recurse -Force -ErrorAction SilentlyContinue
|
|
}
|