Skip to content

Commit f0103d1

Browse files
Change Requests
1 parent f390b2d commit f0103d1

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/UnityPlayerBuildTools.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ public static void ParseBuildCommandLine(ref IBuildInfo buildInfo)
223223
break;
224224
case "-x86":
225225
case "-x64":
226+
case "-arm":
226227
buildInfo.BuildPlatform = arguments[i].Substring(1);
227228
break;
228229
case "-debug":

Assets/MixedRealityToolkit/Utilities/BuildAndDeploy/UwpAppxBuildTools.cs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,15 @@ private static async Task<string> FindMsBuildPathAsync()
181181

182182
private static bool UpdateAppxManifest(IBuildInfo buildInfo)
183183
{
184+
var fullPathOutputDirectory = Path.GetFullPath(buildInfo.OutputDirectory);
185+
Debug.Log($"Searching for appx manifest in {fullPathOutputDirectory}...");
186+
184187
// Find the manifest, assume the one we want is the first one
185-
string[] manifests = Directory.GetFiles(BuildDeployPreferences.AbsoluteBuildDirectory, "Package.appxmanifest", SearchOption.AllDirectories);
188+
string[] manifests = Directory.GetFiles(fullPathOutputDirectory, "Package.appxmanifest", SearchOption.AllDirectories);
186189

187190
if (manifests.Length == 0)
188191
{
189-
Debug.LogError($"Unable to find Package.appxmanifest file for build (in path - {BuildDeployPreferences.AbsoluteBuildDirectory})");
192+
Debug.LogError($"Unable to find Package.appxmanifest file for build (in path - {fullPathOutputDirectory})");
190193
return false;
191194
}
192195

@@ -200,15 +203,15 @@ private static bool UpdateAppxManifest(IBuildInfo buildInfo)
200203

201204
if (identityNode == null)
202205
{
203-
Debug.LogError($"Package.appxmanifest for build (in path - {BuildDeployPreferences.AbsoluteBuildDirectory}) is missing an <Identity /> node");
206+
Debug.LogError($"Package.appxmanifest for build (in path - {fullPathOutputDirectory}) is missing an <Identity /> node");
204207
return false;
205208
}
206209

207210
var dependencies = rootNode.Element(rootNode.GetDefaultNamespace() + "Dependencies");
208211

209212
if (dependencies == null)
210213
{
211-
Debug.LogError($"Package.appxmanifest for build (in path - {BuildDeployPreferences.AbsoluteBuildDirectory}) is missing <Dependencies /> node.");
214+
Debug.LogError($"Package.appxmanifest for build (in path - {fullPathOutputDirectory}) is missing <Dependencies /> node.");
212215
return false;
213216
}
214217

@@ -221,7 +224,7 @@ private static bool UpdateAppxManifest(IBuildInfo buildInfo)
221224

222225
if (versionAttr == null)
223226
{
224-
Debug.LogError($"Package.appxmanifest for build (in path - {BuildDeployPreferences.AbsoluteBuildDirectory}) is missing a Version attribute in the <Identity /> node.");
227+
Debug.LogError($"Package.appxmanifest for build (in path - {fullPathOutputDirectory}) is missing a Version attribute in the <Identity /> node.");
225228
return false;
226229
}
227230

0 commit comments

Comments
 (0)