Skip to content

Commit

Permalink
Swap to NPMJS registry
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipAlg committed Sep 30, 2024
1 parent 32684f0 commit e278b83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Editor/AGXUnityEditor/PackageManifest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PackageManifest>( manifestRaw );
s_instance = JsonUtility.FromJson<PackageManifest>( Raw );
}
catch {
Debug.LogError( "Failed to load package manifest. AGXUnity installation might be corrupt." );
Expand Down
2 changes: 1 addition & 1 deletion Editor/AGXUnityEditor/Windows/ExamplesManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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" } );
}

/// <summary>
Expand Down

0 comments on commit e278b83

Please sign in to comment.