From 721fba684ac7bb478f47035a9cbbbf10d7ca48d0 Mon Sep 17 00:00:00 2001 From: jessikitty Date: Mon, 27 Apr 2026 10:44:28 +1000 Subject: [PATCH] v1.1.0 - Update author, include UIExtension features in manual manifest --- Build-Plugin.ps1 | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Build-Plugin.ps1 b/Build-Plugin.ps1 index 1c2db89..7735d3e 100644 --- a/Build-Plugin.ps1 +++ b/Build-Plugin.ps1 @@ -109,14 +109,27 @@ if (-not $useManifestGen) { $manifest = [ordered]@{ Id = $PluginName Name = "AD Compare" - Author = "Jess" + Author = "Jess Rogerson" Url = "https://gitea.hideawaygaming.com.au/jessikitty/disco-ad-compare-plugin" Version = $version.ToString() AssemblyPath = "$PluginName.dll" TypeName = "Disco.Plugins.ADCompare.ADComparePlugin" ConfigurationHandlerTypeName = "Disco.Plugins.ADCompare.ConfigurationHandler.ADCompareConfigurationHandler" WebHandlerTypeName = "Disco.Plugins.ADCompare.WebHandler.ADCompareWebHandler" - Features = @() + Features = @( + [ordered]@{ + Id = "ADCompareDeviceUI" + Name = "Device Page - AD Compare" + TypeName = "Disco.Plugins.ADCompare.Features.DeviceUIExtension" + CategoryName = "User Interface Extensions" + }, + [ordered]@{ + Id = "ADCompareUserUI" + Name = "User Page - AD Compare" + TypeName = "Disco.Plugins.ADCompare.Features.UserUIExtension" + CategoryName = "User Interface Extensions" + } + ) } $manifest | ConvertTo-Json -Depth 5 | Set-Content (Join-Path $buildOutput "manifest.json") -Encoding UTF8 Write-Host "Manual manifest.json created" -ForegroundColor Green @@ -125,7 +138,6 @@ if (-not $useManifestGen) { # --- Package --- Write-Host "`nPackaging .discoPlugin file..." -ForegroundColor Yellow -# Only include the plugin DLL, PDB, and manifest - nothing else $includeFiles = @("$PluginName.dll", "$PluginName.pdb", "manifest.json") if (-not $version) { @@ -135,11 +147,9 @@ if (-not $version) { $packageName = "$PluginName-$($version.ToString()).discoPlugin" $packagePath = Join-Path $PluginDir $packageName -# Clean old packages Get-ChildItem $PluginDir -Filter "*.discoPlugin" | Remove-Item -Force Get-ChildItem $PluginDir -Filter "*.zip" | Where-Object { $_.Name -like "$PluginName*" } | Remove-Item -Force -# Build clean temp folder with only plugin files $tempPkg = Join-Path $env:TEMP "discoplugin_$([guid]::NewGuid().ToString('N'))" New-Item -ItemType Directory -Path $tempPkg -Force | Out-Null foreach ($f in $includeFiles) { @@ -154,7 +164,6 @@ Get-ChildItem $tempPkg -File | ForEach-Object { Write-Host " $($_.Name)" -ForegroundColor Gray } -# Create as .zip first (Compress-Archive requires .zip), then rename $zipPath = Join-Path $PluginDir "$PluginName-$($version.ToString()).zip" Compress-Archive -Path "$tempPkg\*" -DestinationPath $zipPath -Force Rename-Item $zipPath $packageName -Force