mirror of
https://github.com/BotChain-Robots/ui.git
synced 2026-07-08 15:07:22 +02:00
Linux build command
This commit is contained in:
BIN
Assets/ControlLibrary/libc_control.so
Normal file
BIN
Assets/ControlLibrary/libc_control.so
Normal file
Binary file not shown.
69
Assets/ControlLibrary/libc_control.so.meta
Normal file
69
Assets/ControlLibrary/libc_control.so.meta
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c2bc6ae6ed6e97444ab6db59abec5cae
|
||||||
|
PluginImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
iconMap: {}
|
||||||
|
executionOrder: {}
|
||||||
|
defineConstraints: []
|
||||||
|
isPreloaded: 1
|
||||||
|
isOverridable: 0
|
||||||
|
isExplicitlyReferenced: 0
|
||||||
|
validateReferences: 1
|
||||||
|
platformData:
|
||||||
|
- first:
|
||||||
|
: Any
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
Exclude Editor: 0
|
||||||
|
Exclude Linux64: 0
|
||||||
|
Exclude OSXUniversal: 0
|
||||||
|
Exclude Win: 0
|
||||||
|
Exclude Win64: 0
|
||||||
|
- first:
|
||||||
|
Android: Android
|
||||||
|
second:
|
||||||
|
enabled: 0
|
||||||
|
settings:
|
||||||
|
Is16KbAligned: false
|
||||||
|
- first:
|
||||||
|
Any:
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings: {}
|
||||||
|
- first:
|
||||||
|
Editor: Editor
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
CPU: AnyCPU
|
||||||
|
DefaultValueInitialized: true
|
||||||
|
OS: AnyOS
|
||||||
|
- first:
|
||||||
|
Standalone: Linux64
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
CPU: x86_64
|
||||||
|
- first:
|
||||||
|
Standalone: OSXUniversal
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
CPU: None
|
||||||
|
- first:
|
||||||
|
Standalone: Win
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
CPU: x86
|
||||||
|
- first:
|
||||||
|
Standalone: Win64
|
||||||
|
second:
|
||||||
|
enabled: 1
|
||||||
|
settings:
|
||||||
|
CPU: x86_64
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -1,14 +1,39 @@
|
|||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
|
using System.IO;
|
||||||
|
|
||||||
public class BuildScript
|
public class BuildScript
|
||||||
{
|
{
|
||||||
public static void BuildWindows()
|
public static void BuildWindows()
|
||||||
{
|
{
|
||||||
|
string outputPath = "Builds/Windows/botchain.exe";
|
||||||
|
|
||||||
BuildPipeline.BuildPlayer(
|
BuildPipeline.BuildPlayer(
|
||||||
new[] { "Assets/Scenes/SampleScene.unity" },
|
new[] { "Assets/Scenes/SampleScene.unity" },
|
||||||
"Builds/Windows/botchain.exe",
|
outputPath,
|
||||||
BuildTarget.StandaloneWindows64,
|
BuildTarget.StandaloneWindows64,
|
||||||
BuildOptions.None
|
BuildOptions.None
|
||||||
);
|
);
|
||||||
|
|
||||||
|
string sourceSoPath = "Assets/ControlLibrary/libc_control.dll";
|
||||||
|
string destSoPath = Path.Combine(Path.GetDirectoryName(outputPath), "libc_control.dll");
|
||||||
|
|
||||||
|
File.Copy(sourceSoPath, destSoPath, overwrite: true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void BuildLinux()
|
||||||
|
{
|
||||||
|
string outputPath = "Builds/Linux/botchain.x86_64";
|
||||||
|
|
||||||
|
BuildPipeline.BuildPlayer(
|
||||||
|
new[] { "Assets/Scenes/SampleScene.unity" },
|
||||||
|
outputPath,
|
||||||
|
BuildTarget.StandaloneLinux64,
|
||||||
|
BuildOptions.None
|
||||||
|
);
|
||||||
|
|
||||||
|
string sourceSoPath = "Assets/ControlLibrary/libc_control.so";
|
||||||
|
string destSoPath = Path.Combine(Path.GetDirectoryName(outputPath), "libc_control.so");
|
||||||
|
|
||||||
|
File.Copy(sourceSoPath, destSoPath, overwrite: true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user