Compare commits
6 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
d17a727fac | |
|
|
d91835ac31 | |
|
|
6ecc0a9728 | |
|
|
fd32708e7f | |
|
|
a0e0b502c6 | |
|
|
a93ca3dc27 |
|
|
@ -2,48 +2,48 @@
|
||||||
"versions": [
|
"versions": [
|
||||||
{
|
{
|
||||||
"unity_version":"2019",
|
"unity_version":"2019",
|
||||||
"hybridclr" : { "branch":"v8.13.0"},
|
"hybridclr" : { "branch":"v8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v2019-8.14.0"}
|
"il2cpp_plus": { "branch":"v2019-8.15.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"2020",
|
"unity_version":"2020",
|
||||||
"hybridclr" : { "branch":"v8.13.0"},
|
"hybridclr" : { "branch":"v8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v2020-8.14.0"}
|
"il2cpp_plus": { "branch":"v2020-8.15.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"2021",
|
"unity_version":"2021",
|
||||||
"hybridclr" : { "branch":"v8.13.0"},
|
"hybridclr" : { "branch":"v8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v2021-8.14.0"}
|
"il2cpp_plus": { "branch":"v2021-8.15.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"2022",
|
"unity_version":"2022",
|
||||||
"hybridclr" : { "branch":"v8.13.0"},
|
"hybridclr" : { "branch":"v8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v2022-8.14.0"}
|
"il2cpp_plus": { "branch":"v2022-8.15.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"2022-tuanjie",
|
"unity_version":"2022-tuanjie",
|
||||||
"hybridclr" : { "branch":"v8.13.0"},
|
"hybridclr" : { "branch":"v8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v2022-tuanjie-8.14.0"}
|
"il2cpp_plus": { "branch":"v2022-tuanjie-8.15.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"2023",
|
"unity_version":"2023",
|
||||||
"hybridclr" : { "branch":"v8.13.0"},
|
"hybridclr" : { "branch":"v8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v2023-8.1.0"}
|
"il2cpp_plus": { "branch":"v2023-8.1.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"6000",
|
"unity_version":"6000",
|
||||||
"hybridclr" : { "branch":"v8.13.0"},
|
"hybridclr" : { "branch":"v8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v6000-8.14.0"}
|
"il2cpp_plus": { "branch":"v6000-8.15.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"6000.3.x",
|
"unity_version":"6000.3.x",
|
||||||
"hybridclr" : { "branch":"v6000.3.x-8.13.0"},
|
"hybridclr" : { "branch":"v6000.3.x-8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v6000.3.x-8.14.0"}
|
"il2cpp_plus": { "branch":"v6000.3.x-8.15.0"}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"unity_version":"6000.5.x",
|
"unity_version":"6000.5.x",
|
||||||
"hybridclr" : { "branch":"v6000.5.x-8.14.0"},
|
"hybridclr" : { "branch":"v6000.5.x-8.15.0"},
|
||||||
"il2cpp_plus": { "branch":"v6000.5.x-8.14.0"}
|
"il2cpp_plus": { "branch":"v6000.5.x-8.15.0"}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -22,8 +22,6 @@ namespace HybridCLR.Editor.Installer
|
||||||
|
|
||||||
private const string il2cpp_plus_repo_path = "il2cpp_plus_repo";
|
private const string il2cpp_plus_repo_path = "il2cpp_plus_repo";
|
||||||
|
|
||||||
public int MajorVersion => _curVersion.major;
|
|
||||||
|
|
||||||
private readonly UnityVersion _curVersion;
|
private readonly UnityVersion _curVersion;
|
||||||
|
|
||||||
private readonly HybridclrVersionManifest _versionManifest;
|
private readonly HybridclrVersionManifest _versionManifest;
|
||||||
|
|
@ -37,17 +35,7 @@ namespace HybridCLR.Editor.Installer
|
||||||
{
|
{
|
||||||
_curVersion = ParseUnityVersion(Application.unityVersion);
|
_curVersion = ParseUnityVersion(Application.unityVersion);
|
||||||
_versionManifest = GetHybridCLRVersionManifest();
|
_versionManifest = GetHybridCLRVersionManifest();
|
||||||
_curDefaultVersion = _versionManifest.versions.FirstOrDefault(v => {
|
_curDefaultVersion = FindMatchedVersion(_versionManifest.versions, _curVersion);
|
||||||
return _curVersion.isTuanjieEngine? v.unity_version == $"{_curVersion.major}-tuanjie"
|
|
||||||
#if UNITY_6000_3_OR_NEWER
|
|
||||||
: v.unity_version == "6000.3.x"
|
|
||||||
#elif UNITY_6000_5_OR_NEWER
|
|
||||||
: v.unity_version == "6000.5.x"
|
|
||||||
#else
|
|
||||||
: v.unity_version == _curVersion.major.ToString()
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
});
|
|
||||||
PackageVersion = LoadPackageInfo().version;
|
PackageVersion = LoadPackageInfo().version;
|
||||||
InstalledLibil2cppVersion = ReadLocalVersion();
|
InstalledLibil2cppVersion = ReadLocalVersion();
|
||||||
}
|
}
|
||||||
|
|
@ -129,26 +117,50 @@ namespace HybridCLR.Editor.Installer
|
||||||
|
|
||||||
public string GetCurrentUnityVersionMinCompatibleVersionStr()
|
public string GetCurrentUnityVersionMinCompatibleVersionStr()
|
||||||
{
|
{
|
||||||
return GetMinCompatibleVersion(MajorVersion);
|
return GetMinCompatibleVersion(_curVersion.major, _curVersion.minor1);
|
||||||
}
|
}
|
||||||
|
|
||||||
public string GetMinCompatibleVersion(int majorVersion)
|
private HybridclrVersionInfo FindMatchedVersion(List<HybridclrVersionInfo> versions, UnityVersion curVer)
|
||||||
|
{
|
||||||
|
HybridclrVersionInfo bestMatch = null;
|
||||||
|
foreach (var v in versions)
|
||||||
|
{
|
||||||
|
string[] versionWithEngineParts = v.unity_version.Split('-');
|
||||||
|
if ((curVer.isTuanjieEngine && versionWithEngineParts.Length == 1) || (!curVer.isTuanjieEngine && versionWithEngineParts.Length == 2))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
string[] versionParts = versionWithEngineParts[0].Split('.');
|
||||||
|
if (int.Parse(versionParts[0]) == curVer.major && (versionParts.Length == 1 || int.Parse(versionParts[1]) <= curVer.minor1))
|
||||||
|
{
|
||||||
|
bestMatch = v;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (bestMatch == null)
|
||||||
|
{
|
||||||
|
throw new NotSupportedException($"No compatible version found for Unity {curVer.major}.{curVer.minor1}.{curVer.minor2}");
|
||||||
|
}
|
||||||
|
return bestMatch;
|
||||||
|
}
|
||||||
|
|
||||||
|
private string GetMinCompatibleVersion(int majorVersion, int minorVersion)
|
||||||
{
|
{
|
||||||
switch(majorVersion)
|
switch(majorVersion)
|
||||||
{
|
{
|
||||||
case 2019: return "2019.4.0";
|
case 2019: return "2019.4.0";
|
||||||
case 2020: return "2020.3.0";
|
case 2020: return "2020.3.0";
|
||||||
case 2021: return "2021.3.0";
|
case 2021: return "2021.3.0";
|
||||||
case 2022: return "2022.3.0";
|
case 2022: return "2022.3.0";
|
||||||
case 2023: return "2023.2.0";
|
case 2023: return "2023.2.0";
|
||||||
#if UNITY_6000_3_OR_NEWER
|
default:
|
||||||
case 6000: return "6000.3.0";
|
{
|
||||||
#elif UNITY_6000_5_OR_NEWER
|
if (majorVersion < 2019)
|
||||||
case 6000: return "6000.5.0";
|
{
|
||||||
#else
|
throw new NotSupportedException($"Unsupported major version: {majorVersion}");
|
||||||
case 6000: return "6000.0.0";
|
}
|
||||||
#endif
|
return $"{majorVersion}.0.0";
|
||||||
default: return $"2020.3.0";
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -161,11 +173,11 @@ namespace HybridCLR.Editor.Installer
|
||||||
|
|
||||||
public CompatibleType GetCompatibleType()
|
public CompatibleType GetCompatibleType()
|
||||||
{
|
{
|
||||||
UnityVersion version = _curVersion;
|
if (_curDefaultVersion == null)
|
||||||
if (version == null)
|
|
||||||
{
|
{
|
||||||
return CompatibleType.Incompatible;
|
return CompatibleType.Incompatible;
|
||||||
}
|
}
|
||||||
|
UnityVersion version = _curVersion;
|
||||||
if ((version.major == 2019 && version.minor1 < 4)
|
if ((version.major == 2019 && version.minor1 < 4)
|
||||||
|| (version.major >= 2020 && version.major <= 2022 && version.minor1 < 3))
|
|| (version.major >= 2020 && version.major <= 2022 && version.minor1 < 3))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
[README 中文](./README.md) | [README English](./README_EN.md)
|
**中文** | [English](./README_EN.md)
|
||||||
|
|
||||||
[Github](https://github.com/focus-creative-games/hybridclr) | [Gitee](https://gitee.com/focus-creative-games/hybridclr)
|
[Github](https://github.com/focus-creative-games/hybridclr) | [Gitee](https://gitee.com/focus-creative-games/hybridclr)
|
||||||
|
|
||||||
|
|
@ -25,6 +25,8 @@ HybridCLR扩充了il2cpp运行时代码,使它由纯[AOT](https://en.wikipedia
|
||||||
- [快速上手](https://www.hybridclr.cn/docs/beginner/quickstart)
|
- [快速上手](https://www.hybridclr.cn/docs/beginner/quickstart)
|
||||||
- [商业项目案例](https://www.hybridclr.cn/docs/other/businesscase)
|
- [商业项目案例](https://www.hybridclr.cn/docs/other/businesscase)
|
||||||
- [LeanCLR](https://github.com/focus-creative-games/leanclr)
|
- [LeanCLR](https://github.com/focus-creative-games/leanclr)
|
||||||
|
- HybridCLR 原生集成脚本方案: Lua-[ZLua](https://github.com/focus-creative-games/zlua)/Typescript-[ZenTS](https://github.com/focus-creative-games/zen-ts)
|
||||||
|
- 代码混淆工具 [Obfuz](https://github.com/focus-creative-games/obfuz)
|
||||||
|
|
||||||
## 特性
|
## 特性
|
||||||
|
|
||||||
|
|
@ -76,7 +78,7 @@ HybridCLR已经被广泛验证是非常高效、稳定的Unity热更新解决方
|
||||||
- 新手1群(3000人):428404198(满)
|
- 新手1群(3000人):428404198(满)
|
||||||
- 新手2群(2000人):680274677(满)
|
- 新手2群(2000人):680274677(满)
|
||||||
- 新手3群(2000人):**920714552(推荐)**
|
- 新手3群(2000人):**920714552(推荐)**
|
||||||
- discord频道 `https://discord.gg/BATfNfJnm2`
|
- discord频道: <https://discord.gg/BATfNfJnm2>
|
||||||
- 商业合作邮箱: business#code-philosophy.com
|
- 商业合作邮箱: business#code-philosophy.com
|
||||||
- [商业化支持](https://www.hybridclr.cn/docs/business/intro)
|
- [商业化支持](https://www.hybridclr.cn/docs/business/intro)
|
||||||
|
|
||||||
|
|
|
||||||
10
README_EN.md
10
README_EN.md
|
|
@ -1,7 +1,3 @@
|
||||||
|
|
||||||
- [README Chinese](./README.md)
|
|
||||||
- [README English](./README_EN.md)
|
|
||||||
|
|
||||||
# HybridCLR
|
# HybridCLR
|
||||||
|
|
||||||
[](https://github.com/focus-creative-games/hybridclr/blob/main/LICENSE)
|
[](https://github.com/focus-creative-games/hybridclr/blob/main/LICENSE)
|
||||||
|
|
@ -11,6 +7,8 @@
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
[中文](./README.md) | **English**
|
||||||
|
|
||||||
HybridCLR is a **feature-complete, zero-cost, high-performance, low-memory** **near-perfect** Unity cross-platform native C# hot update solution.
|
HybridCLR is a **feature-complete, zero-cost, high-performance, low-memory** **near-perfect** Unity cross-platform native C# hot update solution.
|
||||||
|
|
||||||
HybridCLR extends the il2cpp runtime code, transforming it from a pure [AOT](https://en.wikipedia.org/wiki/Ahead-of-time_compilation) runtime to an AOT+Interpreter hybrid runtime, thereby natively supporting the dynamic loading of assemblies and fundamentally supporting hot updates from the bottom layer. Games using HybridCLR technology can not only run efficiently on the Android platform but also on all platforms supported by il2cpp, including iOS, Consoles, WebGL, etc.
|
HybridCLR extends the il2cpp runtime code, transforming it from a pure [AOT](https://en.wikipedia.org/wiki/Ahead-of-time_compilation) runtime to an AOT+Interpreter hybrid runtime, thereby natively supporting the dynamic loading of assemblies and fundamentally supporting hot updates from the bottom layer. Games using HybridCLR technology can not only run efficiently on the Android platform but also on all platforms supported by il2cpp, including iOS, Consoles, WebGL, etc.
|
||||||
|
|
@ -25,6 +23,8 @@ Welcome to embrace modern native C# hot update technology!
|
||||||
- [Quick Start](https://www.hybridclr.cn/en/docs/beginner/quickstart)
|
- [Quick Start](https://www.hybridclr.cn/en/docs/beginner/quickstart)
|
||||||
- [Business Project Cases](https://www.hybridclr.cn/en/docs/other/businesscase)
|
- [Business Project Cases](https://www.hybridclr.cn/en/docs/other/businesscase)
|
||||||
- [LeanCLR](https://github.com/focus-creative-games/leanclr)
|
- [LeanCLR](https://github.com/focus-creative-games/leanclr)
|
||||||
|
- HybridCLR native scripting solutions: Lua-[ZLua](https://github.com/focus-creative-games/zlua)/Typescript-[ZenTS](https://github.com/focus-creative-games/zen-ts)
|
||||||
|
- Code obfuscation tool [Obfuz](https://github.com/focus-creative-games/obfuz)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ You can view the [list of known top companies using HybridCLR and their launched
|
||||||
- Beginner Group 1: 428404198 (Full)
|
- Beginner Group 1: 428404198 (Full)
|
||||||
- Beginner Group 2: 680274677 (Full)
|
- Beginner Group 2: 680274677 (Full)
|
||||||
- Beginner Group 3: **920714552 (Recommended)**
|
- Beginner Group 3: **920714552 (Recommended)**
|
||||||
- Discord channel https://discord.gg/BATfNfJnm2
|
- Discord channel: <https://discord.gg/BATfNfJnm2>
|
||||||
- Business cooperation email: business#code-philosophy.com
|
- Business cooperation email: business#code-philosophy.com
|
||||||
- [Commercial Support](https://www.hybridclr.cn/en/docs/business/intro)
|
- [Commercial Support](https://www.hybridclr.cn/en/docs/business/intro)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,28 @@
|
||||||
# ReleaseLog
|
# ReleaseLog
|
||||||
|
|
||||||
|
## 8.15.0
|
||||||
|
|
||||||
|
Release Data: 2026-09-29.
|
||||||
|
|
||||||
|
### Runtime
|
||||||
|
|
||||||
|
- fix: Reject not-fully-instantiated types during IL transform
|
||||||
|
- fix: align explicit interface method override across runtimes
|
||||||
|
- fix: fix regression bug comes from commit `SHA-1: b11fb5daa6ff2737619bd3b7ef6602d2b34dc3f8 * new: add test case for computing interface vtable implement when re-implements interface in child class.`, leading to interface methods were implicit override by not-public virtual methods.
|
||||||
|
- refactor: change type of MethodInfo::initInterpCallMethodPointer/isInterpterImpl from bool:1 to uint8_t:1 so all flag fields can be packed in 1 byte.
|
||||||
|
|
||||||
|
### Editor
|
||||||
|
|
||||||
|
- refactor: InstallerController find max-lower-bound version as best match version
|
||||||
|
|
||||||
|
## 8.14.1
|
||||||
|
|
||||||
|
Release Data: 2026-08-18.
|
||||||
|
|
||||||
|
### Editor
|
||||||
|
|
||||||
|
- fix: fix InstallerController install branch 6000.3.x on 6000.5.x incorrectly
|
||||||
|
|
||||||
## 8.14.0
|
## 8.14.0
|
||||||
|
|
||||||
Release Data: 2026-08-18.
|
Release Data: 2026-08-18.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "com.code-philosophy.hybridclr",
|
"name": "com.code-philosophy.hybridclr",
|
||||||
"version": "8.14.0",
|
"version": "8.15.0",
|
||||||
"displayName": "HybridCLR",
|
"displayName": "HybridCLR",
|
||||||
"description": "HybridCLR is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotupdate.",
|
"description": "HybridCLR is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotupdate.",
|
||||||
"category": "Scripting",
|
"category": "Scripting",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue