Fix glslang python update script for Mac and error on failure
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// Copyright (c) Wojciech Figat. All rights reserved.
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using Flax.Build;
|
||||
|
||||
@@ -82,7 +83,8 @@ namespace Flax.Deps.Dependencies
|
||||
|
||||
// Setup the external sources
|
||||
// Requires distutils (pip install setuptools)
|
||||
Utilities.Run("python", "update_glslang_sources.py", null, root, Utilities.RunOptions.ConsoleLogOutput);
|
||||
if (Utilities.Run(BuildPlatform == TargetPlatform.Mac ? "python3" : "python", "update_glslang_sources.py", null, root, Utilities.RunOptions.ConsoleLogOutput) != 0)
|
||||
throw new Exception("Failed to run update_glslang_sources.py");
|
||||
|
||||
foreach (var platform in options.Platforms)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user