unity-hub-cli 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -652,6 +652,13 @@ var extractProjectPath = (command) => {
|
|
|
652
652
|
var isUnityMainProcess = (command) => {
|
|
653
653
|
return UNITY_EXECUTABLE_PATTERN.test(command);
|
|
654
654
|
};
|
|
655
|
+
var isUnityAuxiliaryProcess = (command) => {
|
|
656
|
+
const normalized = command.toLowerCase();
|
|
657
|
+
if (normalized.includes("-batchmode")) {
|
|
658
|
+
return true;
|
|
659
|
+
}
|
|
660
|
+
return normalized.includes("assetimportworker");
|
|
661
|
+
};
|
|
655
662
|
var isProcessMissingError = (error) => {
|
|
656
663
|
if (typeof error !== "object" || error === null) {
|
|
657
664
|
return false;
|
|
@@ -698,6 +705,9 @@ var MacUnityProcessReader = class {
|
|
|
698
705
|
if (!isUnityMainProcess(command)) {
|
|
699
706
|
return void 0;
|
|
700
707
|
}
|
|
708
|
+
if (isUnityAuxiliaryProcess(command)) {
|
|
709
|
+
return void 0;
|
|
710
|
+
}
|
|
701
711
|
const projectArgument = extractProjectPath(command);
|
|
702
712
|
if (!projectArgument) {
|
|
703
713
|
return void 0;
|