File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -604,11 +604,15 @@ public File compile(RunnerListener listener) throws Exception {
604604 String macArch2 = System .getProperty ("os.arch" ,"" ).contains ("aarch64" ) ? "arm64" : "x64" ;
605605 File macLibsDir2 = new File (runtimeDir .getParentFile (), "libs/macos" );
606606 if (macLibsDir2 .exists ()) {
607+ File macBinaryDir = new File (binary .getParent ());
608+ macBinaryDir .mkdirs ();
607609 for (File dylib : macLibsDir2 .listFiles ((d ,n ) -> n .endsWith (".dylib" ))) {
608- File destDylib = new File (sketch .getFolder (), dylib .getName ());
609- try { java .nio .file .Files .copy (dylib .toPath (), destDylib .toPath (),
610- java .nio .file .StandardCopyOption .REPLACE_EXISTING ); }
611- catch (Exception ignored ) {}
610+ for (File destDir : new File []{macBinaryDir , sketch .getFolder ()}) {
611+ File destDylib = new File (destDir , dylib .getName ());
612+ try { java .nio .file .Files .copy (dylib .toPath (), destDylib .toPath (),
613+ java .nio .file .StandardCopyOption .REPLACE_EXISTING ); }
614+ catch (Exception ignored ) {}
615+ }
612616 }
613617 }
614618 }
You can’t perform that action at this time.
0 commit comments