mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
Macos build script
This commit is contained in:
@@ -36,4 +36,21 @@ public class BuildScript
|
|||||||
|
|
||||||
File.Copy(sourceSoPath, destSoPath, overwrite: true);
|
File.Copy(sourceSoPath, destSoPath, overwrite: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void BuildMac()
|
||||||
|
{
|
||||||
|
string outputPath = "Builds/macOS/botchain.app";
|
||||||
|
|
||||||
|
BuildPipeline.BuildPlayer(
|
||||||
|
new[] { "Assets/Scenes/SampleScene.unity" },
|
||||||
|
outputPath,
|
||||||
|
BuildTarget.StandaloneOSX,
|
||||||
|
BuildOptions.None
|
||||||
|
);
|
||||||
|
|
||||||
|
string sourceSoPath = "Assets/ControlLibrary/libc_control.dylib";
|
||||||
|
string destSoPath = Path.Combine(Path.GetDirectoryName(outputPath), "libc_control.dylib");
|
||||||
|
|
||||||
|
File.Copy(sourceSoPath, destSoPath, overwrite: true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user