Skip to content

Commit 42e6d41

Browse files
tweak command
1 parent 36bb640 commit 42e6d41

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/unity-editor.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -212,11 +212,9 @@ export class UnityEditor {
212212
}
213213
});
214214
} else {
215-
if (process.platform === 'darwin') {
216-
if (this.version.architecture === 'X86_64' && process.arch === 'arm64') {
217-
// Force the Unity Editor to run under Rosetta 2 on Apple Silicon Macs if the editor is x86_64
218-
command.args.unshift('arch', '-x86_64');
219-
}
215+
if (process.platform === 'darwin' && this.version.architecture === 'X86_64' && process.arch === 'arm64') {
216+
// Force the Unity Editor to run under Rosetta 2 on Apple Silicon Macs if the editor is x86_64
217+
command.args.unshift('arch', '-x86_64');
220218
}
221219

222220
unityProcess = spawn(

0 commit comments

Comments
 (0)