Compare commits

..

9 Commits

Author SHA1 Message Date
walon d17a727fac chore: release v8.15.0 2026-09-29 11:51:30 +08:00
walon d91835ac31 doc: update README 2026-09-29 09:58:48 +08:00
walon 6ecc0a9728 refactor: InstallerController find max-lower version as best match version 2026-09-03 18:01:41 +08:00
walon fd32708e7f chore: add description for ZLua and ZenTS to README 2026-08-20 08:49:48 +08:00
walon a0e0b502c6 chore: release v8.14.1 2026-08-19 22:03:48 +08:00
walon a93ca3dc27 fix: fix InstallerController install branch 6000.3.x on 6000.5.x incorrectly 2026-08-19 22:02:31 +08:00
walon b700ae679c chore: release v8.14.0 2026-08-19 19:07:46 +08:00
walon 6e635f78bf feat: installer support 6000.5.x 2026-08-18 12:19:53 +08:00
walon ca7f87b6a7 chore: release v8.13.0 2026-08-02 13:02:16 +08:00
6 changed files with 123 additions and 49 deletions

View File

@ -2,43 +2,48 @@
"versions": [ "versions": [
{ {
"unity_version":"2019", "unity_version":"2019",
"hybridclr" : { "branch":"v8.12.0"}, "hybridclr" : { "branch":"v8.15.0"},
"il2cpp_plus": { "branch":"v2019-8.9.0"} "il2cpp_plus": { "branch":"v2019-8.15.0"}
}, },
{ {
"unity_version":"2020", "unity_version":"2020",
"hybridclr" : { "branch":"v8.12.0"}, "hybridclr" : { "branch":"v8.15.0"},
"il2cpp_plus": { "branch":"v2020-8.9.0"} "il2cpp_plus": { "branch":"v2020-8.15.0"}
}, },
{ {
"unity_version":"2021", "unity_version":"2021",
"hybridclr" : { "branch":"v8.12.0"}, "hybridclr" : { "branch":"v8.15.0"},
"il2cpp_plus": { "branch":"v2021-8.1.0"} "il2cpp_plus": { "branch":"v2021-8.15.0"}
}, },
{ {
"unity_version":"2022", "unity_version":"2022",
"hybridclr" : { "branch":"v8.12.0"}, "hybridclr" : { "branch":"v8.15.0"},
"il2cpp_plus": { "branch":"v2022-8.11.0"} "il2cpp_plus": { "branch":"v2022-8.15.0"}
}, },
{ {
"unity_version":"2022-tuanjie", "unity_version":"2022-tuanjie",
"hybridclr" : { "branch":"v8.12.0"}, "hybridclr" : { "branch":"v8.15.0"},
"il2cpp_plus": { "branch":"v2022-tuanjie-8.11.0"} "il2cpp_plus": { "branch":"v2022-tuanjie-8.15.0"}
}, },
{ {
"unity_version":"2023", "unity_version":"2023",
"hybridclr" : { "branch":"v8.12.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.12.0"}, "hybridclr" : { "branch":"v8.15.0"},
"il2cpp_plus": { "branch":"v6000-8.11.0"} "il2cpp_plus": { "branch":"v6000-8.15.0"}
}, },
{ {
"unity_version":"6000.3.x", "unity_version":"6000.3.x",
"hybridclr" : { "branch":"v6000.3.x-8.12.0"}, "hybridclr" : { "branch":"v6000.3.x-8.15.0"},
"il2cpp_plus": { "branch":"v6000.3.x-8.11.0"} "il2cpp_plus": { "branch":"v6000.3.x-8.15.0"}
},
{
"unity_version":"6000.5.x",
"hybridclr" : { "branch":"v6000.5.x-8.15.0"},
"il2cpp_plus": { "branch":"v6000.5.x-8.15.0"}
} }
] ]
} }

View File

@ -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,15 +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"
#else
: v.unity_version == _curVersion.major.ToString()
#endif
;
});
PackageVersion = LoadPackageInfo().version; PackageVersion = LoadPackageInfo().version;
InstalledLibil2cppVersion = ReadLocalVersion(); InstalledLibil2cppVersion = ReadLocalVersion();
} }
@ -127,24 +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"; {
#else if (majorVersion < 2019)
case 6000: return "6000.0.0"; {
#endif throw new NotSupportedException($"Unsupported major version: {majorVersion}");
default: return $"2020.3.0"; }
return $"{majorVersion}.0.0";
}
} }
} }
@ -157,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))
{ {

View File

@ -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)

View File

@ -1,7 +1,3 @@
- [README Chinese](./README.md)
- [README English](./README_EN.md)
# HybridCLR # HybridCLR
[![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/focus-creative-games/hybridclr/blob/main/LICENSE) [![license](http://img.shields.io/badge/license-MIT-blue.svg)](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)

View File

@ -1,5 +1,56 @@
# 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
Release Data: 2026-08-18.
### Runtime
- feat: **support 6000.5.x**
- fix: handle invalid nested type name which contains namespace in custom attribute generated by burst, which lead to TypeNameParser::Parse fail
- fix(tuanjie): Class::SetupEventsLocked call SetupMethods when disable IL2CPP_ENABLE_LAZY_INIT
### Editor
- feat: installer support 6000.5.x
## 8.13.0
Release Data: 2026-08-02.
### Runtime
- fix **CRITICAL**: set finalizer bit for Il2CppTypeDefinition.bitfield when defines Finalizer method in parent
- fix: TransformContext::CreateLoadExpandDataToStackVarVar create LdlocVarVar for generic enum type which underlying type size < 4 incorrectly. the right is LdlocExpandVarVar_xxx.
- fix: ComputLocationDescInfo may use uninitialized klass->has_references when compiler computes arguments from right to left
- fix: CallIntrp will save next instruction position to ip so in exception handler unwinding frame, a instruct adjacent to a try-catch block is treated as in try-block incorrectly
- merge: merge il2cpp changes from 6000.3.0 to 6000.3.21
- merge: merge il2cpp changes from 6000.0.60 to 6000.0.80
- merge: merge tuanjie il2cpp changes from 1.8.0 - 1.10.0
## 8.12.0 ## 8.12.0
Release Date: 2026-06-01. Release Date: 2026-06-01.

View File

@ -1,6 +1,6 @@
{ {
"name": "com.code-philosophy.hybridclr", "name": "com.code-philosophy.hybridclr",
"version": "8.12.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",