File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,6 +204,10 @@ export class UnityEditor {
204204 const commandStr = `\x1b[34m${ this . editorPath } ${ command . args . join ( ' ' ) } \x1b[0m` ;
205205 this . logger . startGroup ( commandStr ) ;
206206
207+ if ( this . version . isLegacy ( ) && process . platform === 'darwin' && process . arch === 'arm64' ) {
208+ throw new Error ( `Cannot execute Unity ${ this . version . toString ( ) } on Apple Silicon Macs.` ) ;
209+ }
210+
207211 if ( process . platform === 'linux' &&
208212 ! command . args . includes ( '-nographics' )
209213 ) {
@@ -242,7 +246,7 @@ export class UnityEditor {
242246 } ) ;
243247 }
244248
245- if ( ! unityProcess ?. pid ) {
249+ if ( ! unityProcess ?. pid || unityProcess . killed ) {
246250 throw new Error ( 'Failed to start Unity process!' ) ;
247251 }
248252
Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ export function TailLogFile(logPath: string): LogTailResult {
390390 const tailPromise = new Promise < void > ( ( resolve , reject ) => {
391391 ( async ( ) => {
392392 try {
393- await WaitForFileToBeCreatedAndReadable ( logPath , 10_000 ) ;
393+ await WaitForFileToBeCreatedAndReadable ( logPath ) ;
394394
395395 while ( ! logEnded ) {
396396 await Delay ( logPollingInterval ) ;
You can’t perform that action at this time.
0 commit comments