From e7232ff5ac60cae134aeaf8bc123b32ccc3d5522 Mon Sep 17 00:00:00 2001 From: mahach666 <79989386+mahach666@users.noreply.github.com> Date: Thu, 26 Nov 2026 17:33:40 +0000 Subject: [PATCH] Fit the CLI tool under the NuGet upload limit --- CHANGELOG.md | 3 ++- Directory.Build.props | 2 +- src/IOViewer.Cli/IOViewer.Cli.csproj | 8 ++++++++ tools/check-packages.ps1 | 3 +++ 4 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4125bfa..cef3266 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ API between minor releases. ## [Unreleased] -## [0.4.0] - 2026-11-26 +## [0.4.1] - 2026-11-26 ### Added @@ -37,6 +37,7 @@ API between minor releases. ### Fixed +- Keep the CLI tool package within the NuGet.org upload limit by excluding SkiaSharp native debug symbols. - Preserve all 64 bits of element IDs in HTML properties, Copy Id, clash results and 4D tasks. - Report the required byte count and the limit when an HTML export exceeds its binary buffer capacity. - Save HTML to a temporary sibling file and replace the destination after a complete write. Report invalid coordinates, diff --git a/Directory.Build.props b/Directory.Build.props index 4edd6b9..eba22f4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -14,7 +14,7 @@ - 0.4.0 + 0.4.1 mahach666 Copyright (c) 2026 mahach666 IOViewer diff --git a/src/IOViewer.Cli/IOViewer.Cli.csproj b/src/IOViewer.Cli/IOViewer.Cli.csproj index e3d69ad..d0d73b6 100644 --- a/src/IOViewer.Cli/IOViewer.Cli.csproj +++ b/src/IOViewer.Cli/IOViewer.Cli.csproj @@ -34,4 +34,12 @@ Pack="true" PackagePath="licenses/SkiaSharp-NOTICES.txt" Visible="false" /> + + + + + + + diff --git a/tools/check-packages.ps1 b/tools/check-packages.ps1 index 9014b98..f50fcbd 100644 --- a/tools/check-packages.ps1 +++ b/tools/check-packages.ps1 @@ -10,6 +10,9 @@ Write-Host 'Checking package dependencies...' Add-Type -AssemblyName System.IO.Compression.FileSystem $checkedViewer = $false foreach ($package in Get-ChildItem -LiteralPath $PackageDirectory -File -Filter '*.nupkg') { + if ($package.Length -gt 250MB) { + throw "$($package.Name) is $($package.Length) bytes and exceeds the NuGet.org upload limit of 250 MB" + } $zip = [IO.Compression.ZipFile]::OpenRead($package.FullName) try { $entry = $zip.Entries | Where-Object { $_.FullName -notlike '*/*' -and $_.Name -like '*.nuspec' } | Select-Object -First 1