From 377828df7e6b17cd647bf81d7be32b76ed2f5e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=93=AE?= <834207172@qq.com> Date: Mon, 14 Jul 2025 18:32:27 +0800 Subject: [PATCH] =?UTF-8?q?build=E5=89=8D=E9=9D=A2=E6=9D=BF=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/00.StaryEvo/Editor/Build/BuildReport.cs | 6 ++++-- Assets/00.StaryEvo/package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Assets/00.StaryEvo/Editor/Build/BuildReport.cs b/Assets/00.StaryEvo/Editor/Build/BuildReport.cs index 6fdf6c9..3f12f4d 100644 --- a/Assets/00.StaryEvo/Editor/Build/BuildReport.cs +++ b/Assets/00.StaryEvo/Editor/Build/BuildReport.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using Stary.Evo.Editor; using UnityEditor; using UnityEditor.Build; @@ -14,8 +15,9 @@ namespace Stary.Evo public void OnPreprocessBuild(UnityEditor.Build.Reporting.BuildReport report) { + string platform = EditorPrefs.GetString("ChangePlayerSchema"); // build前 - if (ChangePlayerSchema.PLayerMode == PLayerMode.EDITOR_SIMULATEMODE) + if (Enum.Parse(platform) == PLayerMode.EDITOR_SIMULATEMODE) { int id = EditorUtility.DisplayDialogComplex("提示", $"当前为[{PLayerMode.EDITOR_SIMULATEMODE}]模式,请选择切换得热更模式!", diff --git a/Assets/00.StaryEvo/package.json b/Assets/00.StaryEvo/package.json index 06506f8..2c0cb9b 100644 --- a/Assets/00.StaryEvo/package.json +++ b/Assets/00.StaryEvo/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.main", - "version": "1.3.16", + "version": "1.3.17", "displayName": "00.StaryEvo", "description": "This is an Framework package(后台服务器版本,端口9527)", "unity": "2021.3",