| | |
| | | { |
| | | try |
| | | { |
| | | Debug.LogFormat("从命令行中解析出来的SDKPATH 是:{0}", parameters.sdkPath); |
| | | ClientPackage.AssetPrior = 1; |
| | | ClientPackage.BuildPublishers(parameters.sdkPath, parameters.assetbundlePath, parameters.outputPath, parameters.publishers, parameters.buildIndex, false, false); |
| | | } |
| | |
| | | |
| | | } |
| | | |
| | | public static void BuildEXE() |
| | | { |
| | | var parameters = new BuildParameters(); |
| | | if (!parameters.error) |
| | | { |
| | | try |
| | | { |
| | | ClientPackage_Standalone.AssetPrior = 1; |
| | | ClientPackage_Standalone.Build(new ClientPackage_Standalone.BuildParams() |
| | | { |
| | | assetBundle = parameters.assetbundlePath, |
| | | output = parameters.outputPath, |
| | | buildIndex = parameters.buildIndex, |
| | | development = false, |
| | | publisher = parameters.publishers, |
| | | }); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | Debug.Log("打包EXE失败"); |
| | | Debug.Log(ex); |
| | | EditorApplication.Exit(1); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | EditorApplication.Exit(1); |
| | | } |
| | | } |
| | | |
| | | class BuildParameters |
| | | { |