111
This commit is contained in:
@@ -141,27 +141,27 @@ namespace Stary.Evo.Editor
|
||||
}
|
||||
|
||||
// 配置构建选项
|
||||
BuildPlayerOptions buildOptions = new BuildPlayerOptions
|
||||
{
|
||||
scenes = scenelist,
|
||||
locationPathName = $"Builds/Android/{PlayerSettings.productName}.apk",
|
||||
target = BuildTarget.Android,
|
||||
options = BuildOptions.None
|
||||
};
|
||||
|
||||
// 执行打包
|
||||
var report = BuildPipeline.BuildPlayer(buildOptions);
|
||||
|
||||
BuildSummary summary = report.summary;
|
||||
if (summary.result == BuildResult.Succeeded)
|
||||
{
|
||||
Debug.Log("Build succeeded: " + summary.totalSize + " bytes");
|
||||
}
|
||||
|
||||
if (summary.result == BuildResult.Failed)
|
||||
{
|
||||
Debug.LogError("Build failed");
|
||||
}
|
||||
// BuildPlayerOptions buildOptions = new BuildPlayerOptions
|
||||
// {
|
||||
// scenes = scenelist,
|
||||
// locationPathName = $"Builds/Android/{PlayerSettings.productName}.apk",
|
||||
// target = BuildTarget.Android,
|
||||
// options = BuildOptions.None
|
||||
// };
|
||||
//
|
||||
// // 执行打包
|
||||
// var report = BuildPipeline.BuildPlayer(buildOptions);
|
||||
//
|
||||
// BuildSummary summary = report.summary;
|
||||
// if (summary.result == BuildResult.Succeeded)
|
||||
// {
|
||||
// Debug.Log("Build succeeded: " + summary.totalSize + " bytes");
|
||||
// }
|
||||
//
|
||||
// if (summary.result == BuildResult.Failed)
|
||||
// {
|
||||
// Debug.LogError("Build failed");
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user