From c346eef5b267455c00187085b660ef367436b7e8 Mon Sep 17 00:00:00 2001 From: cneicy Date: Wed, 26 Aug 2026 11:56:13 +0800 Subject: [PATCH] fix(installer): tolerate diagnostics during resolution --- Editor/ShrinkSdkInstallerWindow.cs | 13 ++++++++----- README.md | 2 +- package.json | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Editor/ShrinkSdkInstallerWindow.cs b/Editor/ShrinkSdkInstallerWindow.cs index 00f0305..192205e 100644 --- a/Editor/ShrinkSdkInstallerWindow.cs +++ b/Editor/ShrinkSdkInstallerWindow.cs @@ -82,7 +82,12 @@ namespace ShrinkSDK.Installer } else { - SetStatus("Package diagnostics failed: " + request.Error.message, MessageType.Warning); + var errorMessage = request.Error?.message; + SetStatus( + string.IsNullOrWhiteSpace(errorMessage) + ? "Package diagnostics did not complete while Unity was resolving packages. Refresh diagnostics after resolution completes." + : "Package diagnostics failed: " + errorMessage, + MessageType.Warning); } } } @@ -92,8 +97,7 @@ namespace ShrinkSDK.Installer try { ShrinkSdkManifestStore.EnsureShrinkSdkRegistry(); - Client.Resolve(); - SetStatus("Registry configuration written. Unity is resolving packages.", MessageType.Info); + SetStatus("Registry configuration written. Unity will resolve the updated manifest.", MessageType.Info); } catch (Exception exception) { @@ -106,9 +110,8 @@ namespace ShrinkSDK.Installer try { ShrinkSdkManifestStore.EnsurePackageInstallation(entry); - Client.Resolve(); SetStatus( - "Pinned " + entry.PackageName + " " + entry.Version + " in Packages/manifest.json. Unity is resolving packages.", + "Pinned " + entry.PackageName + " " + entry.Version + " in Packages/manifest.json. Unity will resolve the updated manifest.", MessageType.Info); } catch (Exception exception) diff --git a/README.md b/README.md index f14af79..aa82206 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,5 @@ The installer does not copy templates into `Assets`, does not store credentials, ## Bootstrap URL ```text -https://git.crash.work/ShrinkSDK/Installer.git#v0.1.5 +https://git.crash.work/ShrinkSDK/Installer.git#v0.1.6 ``` diff --git a/package.json b/package.json index 2c63b0c..0bae085 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.cneicy.shrink-installer", - "version": "0.1.5", + "version": "0.1.6", "displayName": "ShrinkSDK Installer", "description": "ShrinkSDK registry bootstrapper and fixed-version package installer.", "unity": "2022.3",