From e278b839cf9ca97f5ed08d0639ca991ea7220de8 Mon Sep 17 00:00:00 2001 From: Filip Henningsson Date: Mon, 30 Sep 2024 16:15:18 +0200 Subject: [PATCH] Swap to NPMJS registry --- Editor/AGXUnityEditor/PackageManifest.cs | 5 +++-- Editor/AGXUnityEditor/Windows/ExamplesManager.cs | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Editor/AGXUnityEditor/PackageManifest.cs b/Editor/AGXUnityEditor/PackageManifest.cs index 5f45e771..3bb504d6 100644 --- a/Editor/AGXUnityEditor/PackageManifest.cs +++ b/Editor/AGXUnityEditor/PackageManifest.cs @@ -10,14 +10,15 @@ public class PackageManifest private static PackageManifest s_instance = null; + public static string Raw => File.ReadAllText(s_manifestPath); + public static PackageManifest Instance { get { if ( s_instance == null ) { - var manifestRaw = File.ReadAllText(s_manifestPath); try { - s_instance = JsonUtility.FromJson( manifestRaw ); + s_instance = JsonUtility.FromJson( Raw ); } catch { Debug.LogError( "Failed to load package manifest. AGXUnity installation might be corrupt." ); diff --git a/Editor/AGXUnityEditor/Windows/ExamplesManager.cs b/Editor/AGXUnityEditor/Windows/ExamplesManager.cs index bf97db57..d717d9fc 100644 --- a/Editor/AGXUnityEditor/Windows/ExamplesManager.cs +++ b/Editor/AGXUnityEditor/Windows/ExamplesManager.cs @@ -382,7 +382,7 @@ public static void Uninitialize() public static void AddAGXUnityScopedRegistry() { - ScopedRegistryManager.AddOrUpdateScopedRegistry( "AGXUnity Registry", "http://127.0.0.1:4000", new string[] { "com.algoryx.agxunity.machines" } ); + ScopedRegistryManager.AddOrUpdateScopedRegistry( "AGXUnity Registry", "https://registry.npmjs.org", new string[] { "com.algoryx.agxunity.machines" } ); } ///