baxi 2 settimane fa
parent
commit
633113e751
5 ha cambiato i file con 18 aggiunte e 3 eliminazioni
  1. 5 0
      CHANGELOG.md
  2. 1 1
      Documentation~/HotPatch.md
  3. 10 0
      Editor/PackageSetup/LaunchTemplateSetup.cs
  4. 1 1
      README.md
  5. 1 1
      package.json

+ 5 - 0
CHANGELOG.md

@@ -28,3 +28,8 @@
 - Fix the Obfuscator settings page's 14 hardcoded GUI resource paths to load textures from the package; include a repeatable DLL/PDB patch tool.
 - Update Xcode Project Folders
 - Explicitly select AppRuntimes for obfuscation after UPM migration; validate renamed types and methods in the assembly consumed by IL2CPP.
+
+
+## 1.0.3
+
+- The framework changes to hot update mode (HybridCLR)

+ 1 - 1
Documentation~/HotPatch.md

@@ -14,7 +14,7 @@ Adding the UPM package and running `HybridCLR/Installer` are separate steps. **
 
 ## Configuration
 
-Select **AppSettings/Install Unity MCP** to install `com.coplaydev.unity-mcp` from `https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main` when absent. Installation starts only from this menu, which also retries failed installations; startup and status checks do not schedule it. Its installer shares the HybridCLR request queue. Existing installations are not upgraded. Select **AppSettings/Load Launch Templates** to copy the package's `Templates~/Launch` into `Assets/Launch` only if that folder is absent; it preserves the scene/script GUID references and leaves existing project Launch content intact. Launch is not copied automatically at startup. **Open Settings** appears first in the AppSettings menu, followed by a separator, **Load Launch Templates**, and **Install Unity MCP**.
+Select **AppSettings/Install Unity MCP** to install `com.coplaydev.unity-mcp` from `https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main` when absent. Installation starts only from this menu, which also retries failed installations; startup and status checks do not schedule it. Its installer shares the HybridCLR request queue. Existing installations are not upgraded. Editor startup checks for `Assets/Launch` after compilation and import finish, then copies the package's `Templates~/Launch` if that folder is absent. It preserves scene/script GUID references and leaves existing project Launch content intact. **AppSettings/Load Launch Templates** also remains available for manual loading. **Open Settings** appears first in the AppSettings menu, followed by a separator, **Load Launch Templates**, and **Install Unity MCP**.
 
 Save automatically adds missing `AppRuntimes.Base` and `Unity.Advertisement.IosSupport` references to the selected runtime asmdef, preserving other settings and supporting both name and GUID references. The build button and menu stay disabled while required references or saved assembly/scene settings are missing. The window also disables building for unsaved assembly/scene selections; Save refreshes its state. Compilation, Play Mode, uploads and ongoing builds temporarily disable building.
 

+ 10 - 0
Editor/PackageSetup/LaunchTemplateSetup.cs

@@ -4,8 +4,18 @@ using UnityEditor;
 using UnityEngine;
 using PackageInfo = UnityEditor.PackageManager.PackageInfo;
 
+[InitializeOnLoad]
 public static class LaunchTemplateSetup
 {
+    static LaunchTemplateSetup() => EditorApplication.update += Initialize;
+
+    static void Initialize()
+    {
+        if (!CanLoadLaunchTemplates()) return;
+        EditorApplication.update -= Initialize;
+        if (!Directory.Exists("Assets/Launch")) LoadLaunchTemplates();
+    }
+
     [MenuItem("AppSettings/Load Launch Templates", false, 100)]
     public static void LoadLaunchTemplates()
     {

+ 1 - 1
README.md

@@ -4,7 +4,7 @@ Unity AppRuntimes package with a HybridCLR hot patch module.
 
 After importing AppRuntimes through Package Manager, the Editor automatically installs the missing `com.code-philosophy.hybridclr` package from the official Git mirror at `v9.0.3`. Existing HybridCLR installations are preserved. AppSettings shows installation status and a retry button if installation fails. See [package installation](Documentation~/HotPatch.md#package-installation) for details.
 
-Select **AppSettings/Install Unity MCP** to install missing [Unity MCP](https://github.com/CoplayDev/unity-mcp) from `https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main`. Unity MCP installation is manual; startup and status checks never schedule it. Package installations run sequentially and preserve existing versions. Use **AppSettings/Load Launch Templates** to copy `Templates~/Launch` into `Assets/Launch`, including the scene, script, assembly definition and their metadata. An existing Launch folder is preserved. Launch is not copied automatically at startup. The AppSettings menu lists **Open Settings** first, followed by a separator, **Load Launch Templates**, then **Install Unity MCP**.
+Select **AppSettings/Install Unity MCP** to install missing [Unity MCP](https://github.com/CoplayDev/unity-mcp) from `https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity#main`. Unity MCP installation is manual; startup and status checks never schedule it. Package installations run sequentially and preserve existing versions. Editor startup copies `Templates~/Launch` into `Assets/Launch` if the folder is absent, including the scene, script, assembly definition and their metadata. The check waits for compilation and import to finish and preserves an existing Launch folder. **AppSettings/Load Launch Templates** remains available for manual loading. The AppSettings menu lists **Open Settings** first, followed by a separator, **Load Launch Templates**, then **Install Unity MCP**.
 
 AppSettings includes 上传资源 for recursive S3 uploads. This internal package stores shared S3 configuration in `Editor/Config/S3UploadSettings.json`; AppSettings has no S3 configuration form. See the [S3 upload guide](Documentation~/S3Upload.md) for configuration, destination paths, and manifest publication order.
 

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "come.app.runtimes",
-  "version": "1.0.2",
+  "version": "1.0.3",
   "displayName": "AppRuntimes",
   "description": "Shared AppRuntimes library with HybridCLR package setup, bundled UniTask, UniWebView, Facebook SDK, External Dependency Manager and GUPS.",
   "unity": "6000.3",