-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.ps1
More file actions
33 lines (27 loc) · 843 Bytes
/
build.ps1
File metadata and controls
33 lines (27 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# View Builder Plugin Build Script
$version = "1.3.0"
$pluginName = "plg_system_viewbuilder"
$zipName = "$($pluginName)_v$($version).zip"
# Clean up any existing zip
if (Test-Path $zipName) {
Remove-Item $zipName
}
Write-Host "Creating package $zipName..." -ForegroundColor Cyan
# Define items to include
$includeItems = @(
"src",
"services",
"media",
"language",
"viewbuilder.xml",
"README.md",
"CHANGELOG.md",
"cache"
)
# Create the ZIP
Compress-Archive -Path $includeItems -DestinationPath $zipName
# Create a generic ZIP for the stable release link
$stableZipName = "$($pluginName).zip"
if (Test-Path $stableZipName) { Remove-Item $stableZipName }
Compress-Archive -Path $includeItems -DestinationPath $stableZipName
Write-Host "Build complete: $zipName and $stableZipName" -ForegroundColor Green