Skip to content

Commit cfe8182

Browse files
committed
Fix dll meta, change Author and DisplayName for PackageManager
1 parent 5a10e7a commit cfe8182

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

src/UnityNuGet/RegistryCache.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics.CodeAnalysis;
44
using System.IO;
@@ -343,8 +343,8 @@ private async Task BuildInternal()
343343
Version = npmCurrentVersion,
344344
Name = npmPackageId,
345345
Description = packageMeta.Description,
346-
Author = npmPackageInfo.Author,
347-
DisplayName = packageMeta.Title + _packageNameNuGetPostFix
346+
Author = "NuGet",
347+
DisplayName = packageMeta.Title + $"({npmPackageInfo.Author})"
348348
};
349349
npmVersion.Distribution.Tarball = new Uri(_rootHttpUri, $"{npmPackage.Id}/-/{GetUnityPackageFileName(packageIdentity, npmVersion)}");
350350
npmVersion.Unity = _minimumUnityVersion;

src/UnityNuGet/UnityMeta.cs

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ static string FormatList(IEnumerable<string> items) => string.Join(
102102
enablesIos = (platIos != null) ? 1 : 0,
103103
enablesEditor = (platEditor != null) ? 1 : 0,
104104

105+
excludesWin = (platWin != null) ? 0 : 1,
106+
excludesWin64 = (platWin64 != null) ? 0 : 1,
107+
excludesLinux64 = (platLinux64 != null) ? 0 : 1,
108+
excludesOsx = (platOsx != null) ? 0 : 1,
109+
excludesAndroid = (platAndroid != null) ? 0 : 1,
110+
excludesWasm = (platWasm != null) ? 0 : 1,
111+
excludesIos = (platIos != null) ? 0 : 1,
112+
excludesEditor = (platEditor != null) ? 0 : 1,
113+
105114
cpuWin = (platWin?.Cpu ?? UnityCpu.None).GetName(),
106115
cpuWin64 = (platWin64?.Cpu ?? UnityCpu.None).GetName(),
107116
cpuLinux64 = (platLinux64?.Cpu ?? UnityCpu.None).GetName(),
@@ -119,14 +128,14 @@ static string FormatList(IEnumerable<string> items) => string.Join(
119128
second:
120129
enabled: 0
121130
settings:
122-
Exclude Android: {{ 1 - enables_android }}
123-
Exclude Editor: {{ 1 - enables_editor }}
124-
Exclude Linux64: {{ 1 - enables_linux64 }}
125-
Exclude OSXUniversal: {{ 1 - enables_osx }}
126-
Exclude WebGL: {{ 1 - enables_wasm }}
127-
Exclude Win: {{ 1 - enables_win }}
128-
Exclude Win64: {{ 1 - enables_win64 }}
129-
Exclude iOS: {{ 1 - enables_ios }}";
131+
Exclude Android: {{ excludes_android }}
132+
Exclude Editor: {{ excludes_editor }}
133+
Exclude Linux64: {{ excludes_linux64 }}
134+
Exclude OSXUniversal: {{ excludes_osx }}
135+
Exclude WebGL: {{ excludes_wasm }}
136+
Exclude Win: {{ excludes_win }}
137+
Exclude Win64: {{ excludes_win64 }}
138+
Exclude iOS: {{ excludes_ios }}";
130139

131140
const string perPlatformSettingsText = @"
132141
- first:

0 commit comments

Comments
 (0)