mirror of
https://github.com/focus-creative-games/hybridclr_unity.git
synced 2026-11-20 15:42:40 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d17a727fac | |||
| d91835ac31 | |||
| 6ecc0a9728 | |||
| fd32708e7f |
@@ -2,48 +2,48 @@
|
||||
"versions": [
|
||||
{
|
||||
"unity_version":"2019",
|
||||
"hybridclr" : { "branch":"v8.13.0"},
|
||||
"il2cpp_plus": { "branch":"v2019-8.14.0"}
|
||||
"hybridclr" : { "branch":"v8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v2019-8.15.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"2020",
|
||||
"hybridclr" : { "branch":"v8.13.0"},
|
||||
"il2cpp_plus": { "branch":"v2020-8.14.0"}
|
||||
"hybridclr" : { "branch":"v8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v2020-8.15.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"2021",
|
||||
"hybridclr" : { "branch":"v8.13.0"},
|
||||
"il2cpp_plus": { "branch":"v2021-8.14.0"}
|
||||
"hybridclr" : { "branch":"v8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v2021-8.15.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"2022",
|
||||
"hybridclr" : { "branch":"v8.13.0"},
|
||||
"il2cpp_plus": { "branch":"v2022-8.14.0"}
|
||||
"hybridclr" : { "branch":"v8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v2022-8.15.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"2022-tuanjie",
|
||||
"hybridclr" : { "branch":"v8.13.0"},
|
||||
"il2cpp_plus": { "branch":"v2022-tuanjie-8.14.0"}
|
||||
"hybridclr" : { "branch":"v8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v2022-tuanjie-8.15.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"2023",
|
||||
"hybridclr" : { "branch":"v8.13.0"},
|
||||
"hybridclr" : { "branch":"v8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v2023-8.1.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"6000",
|
||||
"hybridclr" : { "branch":"v8.13.0"},
|
||||
"il2cpp_plus": { "branch":"v6000-8.14.0"}
|
||||
"hybridclr" : { "branch":"v8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v6000-8.15.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"6000.3.x",
|
||||
"hybridclr" : { "branch":"v6000.3.x-8.13.0"},
|
||||
"il2cpp_plus": { "branch":"v6000.3.x-8.14.0"}
|
||||
"hybridclr" : { "branch":"v6000.3.x-8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v6000.3.x-8.15.0"}
|
||||
},
|
||||
{
|
||||
"unity_version":"6000.5.x",
|
||||
"hybridclr" : { "branch":"v6000.5.x-8.14.0"},
|
||||
"il2cpp_plus": { "branch":"v6000.5.x-8.14.0"}
|
||||
"hybridclr" : { "branch":"v6000.5.x-8.15.0"},
|
||||
"il2cpp_plus": { "branch":"v6000.5.x-8.15.0"}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -35,17 +35,7 @@ namespace HybridCLR.Editor.Installer
|
||||
{
|
||||
_curVersion = ParseUnityVersion(Application.unityVersion);
|
||||
_versionManifest = GetHybridCLRVersionManifest();
|
||||
_curDefaultVersion = _versionManifest.versions.FirstOrDefault(v => {
|
||||
return _curVersion.isTuanjieEngine? v.unity_version == $"{_curVersion.major}-tuanjie"
|
||||
#if UNITY_6000_3_OR_NEWER && !UNITY_6000_5_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
|
||||
;
|
||||
});
|
||||
_curDefaultVersion = FindMatchedVersion(_versionManifest.versions, _curVersion);
|
||||
PackageVersion = LoadPackageInfo().version;
|
||||
InstalledLibil2cppVersion = ReadLocalVersion();
|
||||
}
|
||||
@@ -130,6 +120,30 @@ namespace HybridCLR.Editor.Installer
|
||||
return GetMinCompatibleVersion(_curVersion.major, _curVersion.minor1);
|
||||
}
|
||||
|
||||
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)
|
||||
@@ -139,22 +153,14 @@ namespace HybridCLR.Editor.Installer
|
||||
case 2021: return "2021.3.0";
|
||||
case 2022: return "2022.3.0";
|
||||
case 2023: return "2023.2.0";
|
||||
case 6000:
|
||||
default:
|
||||
{
|
||||
if (minorVersion < 3)
|
||||
if (majorVersion < 2019)
|
||||
{
|
||||
return "6000.0.0";
|
||||
}
|
||||
else if (minorVersion < 5)
|
||||
{
|
||||
return "6000.3.0";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "6000.5.0";
|
||||
throw new NotSupportedException($"Unsupported major version: {majorVersion}");
|
||||
}
|
||||
return $"{majorVersion}.0.0";
|
||||
}
|
||||
default: return $"2020.3.0";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -167,11 +173,11 @@ namespace HybridCLR.Editor.Installer
|
||||
|
||||
public CompatibleType GetCompatibleType()
|
||||
{
|
||||
UnityVersion version = _curVersion;
|
||||
if (version == null)
|
||||
if (_curDefaultVersion == null)
|
||||
{
|
||||
return CompatibleType.Incompatible;
|
||||
}
|
||||
UnityVersion version = _curVersion;
|
||||
if ((version.major == 2019 && version.minor1 < 4)
|
||||
|| (version.major >= 2020 && version.major <= 2022 && version.minor1 < 3))
|
||||
{
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<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)
|
||||
|
||||
@@ -25,6 +25,8 @@ HybridCLR扩充了il2cpp运行时代码,使它由纯[AOT](https://en.wikipedia
|
||||
- [快速上手](https://www.hybridclr.cn/docs/beginner/quickstart)
|
||||
- [商业项目案例](https://www.hybridclr.cn/docs/other/businesscase)
|
||||
- [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(满)
|
||||
- 新手2群(2000人):680274677(满)
|
||||
- 新手3群(2000人):**920714552(推荐)**
|
||||
- discord频道 `https://discord.gg/BATfNfJnm2`
|
||||
- discord频道: <https://discord.gg/BATfNfJnm2>
|
||||
- 商业合作邮箱: business#code-philosophy.com
|
||||
- [商业化支持](https://www.hybridclr.cn/docs/business/intro)
|
||||
|
||||
|
||||
+5
-5
@@ -1,7 +1,3 @@
|
||||
|
||||
- [README Chinese](./README.md)
|
||||
- [README English](./README_EN.md)
|
||||
|
||||
# HybridCLR
|
||||
|
||||
[](https://github.com/focus-creative-games/hybridclr/blob/main/LICENSE)
|
||||
@@ -11,6 +7,8 @@
|
||||
<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 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)
|
||||
- [Business Project Cases](https://www.hybridclr.cn/en/docs/other/businesscase)
|
||||
- [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
|
||||
|
||||
@@ -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 2: 680274677 (Full)
|
||||
- Beginner Group 3: **920714552 (Recommended)**
|
||||
- Discord channel https://discord.gg/BATfNfJnm2
|
||||
- Discord channel: <https://discord.gg/BATfNfJnm2>
|
||||
- Business cooperation email: business#code-philosophy.com
|
||||
- [Commercial Support](https://www.hybridclr.cn/en/docs/business/intro)
|
||||
|
||||
|
||||
@@ -1,5 +1,20 @@
|
||||
# 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.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "com.code-philosophy.hybridclr",
|
||||
"version": "8.14.1",
|
||||
"version": "8.15.0",
|
||||
"displayName": "HybridCLR",
|
||||
"description": "HybridCLR is a fully featured, zero-cost, high-performance, low-memory solution for Unity's all-platform native c# hotupdate.",
|
||||
"category": "Scripting",
|
||||
|
||||
Reference in New Issue
Block a user