mirror of
https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git
synced 2025-11-14 04:55:55 +08:00
Merge remote-tracking branch 'origin/feat-build'
# Conflicts: # Runtime/Plugins/wx-runtime-editor.dll # Runtime/Plugins/wx-runtime.dll
This commit is contained in:
commit
9364235711
@ -61,7 +61,6 @@ namespace WeChatWASM
|
|||||||
PlayerSettings.WebGL.debugSymbols = true;
|
PlayerSettings.WebGL.debugSymbols = true;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
EditorSettings.spritePackerMode = SpritePackerMode.AlwaysOnAtlas;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum WXExportError
|
public enum WXExportError
|
||||||
@ -285,7 +284,7 @@ namespace WeChatWASM
|
|||||||
string[] res = BuildTemplate.CheckCustomCoverBaseConflict(
|
string[] res = BuildTemplate.CheckCustomCoverBaseConflict(
|
||||||
Path.Combine(UnityUtil.GetWxSDKRootPath(), "Runtime", "wechat-default"),
|
Path.Combine(UnityUtil.GetWxSDKRootPath(), "Runtime", "wechat-default"),
|
||||||
Path.Combine(Application.dataPath, "WX-WASM-SDK-V2", "Editor", "template"),
|
Path.Combine(Application.dataPath, "WX-WASM-SDK-V2", "Editor", "template"),
|
||||||
new string[]{ @"\.(js|ts|json)$" }
|
new string[] { @"\.(js|ts|json)$" }
|
||||||
);
|
);
|
||||||
if (res.Length != 0)
|
if (res.Length != 0)
|
||||||
{
|
{
|
||||||
@ -1160,7 +1159,7 @@ namespace WeChatWASM
|
|||||||
|
|
||||||
for (int i = 1; i < unicodeCodes.Count; i++)
|
for (int i = 1; i < unicodeCodes.Count; i++)
|
||||||
{
|
{
|
||||||
if(unicodeCodes[i] == endRange)
|
if (unicodeCodes[i] == endRange)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1272,6 +1271,10 @@ namespace WeChatWASM
|
|||||||
List<string> files = new List<string> { "game.js", "game.json", "project.config.json", "unity-namespace.js", "check-version.js", "unity-sdk/font/index.js" };
|
List<string> files = new List<string> { "game.js", "game.json", "project.config.json", "unity-namespace.js", "check-version.js", "unity-sdk/font/index.js" };
|
||||||
|
|
||||||
ReplaceFileContent(files.ToArray(), replaceList.ToArray());
|
ReplaceFileContent(files.ToArray(), replaceList.ToArray());
|
||||||
|
BuildTemplate.mergeJSON(
|
||||||
|
Path.Combine(Application.dataPath, "WX-WASM-SDK-V2", "Editor", "template", "minigame"),
|
||||||
|
Path.Combine(config.ProjectConf.DST, miniGameDir)
|
||||||
|
);
|
||||||
Emit(LifeCycle.afterBuildTemplate);
|
Emit(LifeCycle.afterBuildTemplate);
|
||||||
UnityEngine.Debug.LogFormat("[Converter] that to modify configs ended");
|
UnityEngine.Debug.LogFormat("[Converter] that to modify configs ended");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,6 +52,11 @@ namespace WeChatWASM
|
|||||||
#else
|
#else
|
||||||
WXExtEnvDef.SETDEF("UNITY_EDITOR_OSX", false);
|
WXExtEnvDef.SETDEF("UNITY_EDITOR_OSX", false);
|
||||||
#endif
|
#endif
|
||||||
|
#if UNITY_EDITOR_LINUX
|
||||||
|
WXExtEnvDef.SETDEF("UNITY_EDITOR_LINUX", true);
|
||||||
|
#else
|
||||||
|
WXExtEnvDef.SETDEF("UNITY_EDITOR_LINUX", false);
|
||||||
|
#endif
|
||||||
#if UNITY_2020
|
#if UNITY_2020
|
||||||
WXExtEnvDef.SETDEF("UNITY_2020", true);
|
WXExtEnvDef.SETDEF("UNITY_2020", true);
|
||||||
#else
|
#else
|
||||||
@ -110,7 +115,8 @@ namespace WeChatWASM
|
|||||||
{
|
{
|
||||||
return WXConvertCore.UseIL2CPP;
|
return WXConvertCore.UseIL2CPP;
|
||||||
});
|
});
|
||||||
WXExtEnvDef.RegisterAction("UnityUtil.GetWxSDKRootPath", (args) => {
|
WXExtEnvDef.RegisterAction("UnityUtil.GetWxSDKRootPath", (args) =>
|
||||||
|
{
|
||||||
#if UNITY_2018
|
#if UNITY_2018
|
||||||
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2");
|
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2");
|
||||||
#else
|
#else
|
||||||
@ -128,7 +134,8 @@ namespace WeChatWASM
|
|||||||
return dir.FullName;
|
return dir.FullName;
|
||||||
#endif
|
#endif
|
||||||
});
|
});
|
||||||
WXExtEnvDef.RegisterAction("UnityUtil.IsAssets", (args) => {
|
WXExtEnvDef.RegisterAction("UnityUtil.IsAssets", (args) =>
|
||||||
|
{
|
||||||
#if UNITY_2018
|
#if UNITY_2018
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
public class WXPluginVersion
|
public class WXPluginVersion
|
||||||
{
|
{
|
||||||
public static string pluginVersion = "202405171605"; // 这一行不要改他,导出的时候会自动替换
|
public static string pluginVersion = "202405201546"; // 这一行不要改他,导出的时候会自动替换
|
||||||
}
|
}
|
||||||
|
|
||||||
public class WXPluginConf
|
public class WXPluginConf
|
||||||
|
|||||||
Binary file not shown.
@ -11,7 +11,7 @@
|
|||||||
</member>
|
</member>
|
||||||
<member name="F:WeChatWASM.BuildTemplate.IgnoreRules">
|
<member name="F:WeChatWASM.BuildTemplate.IgnoreRules">
|
||||||
<summary>
|
<summary>
|
||||||
复制覆盖时不参与覆盖的正则表达式,可动态修改
|
复制覆盖时不参与覆盖的正则表达式,可在 beforeCoverTemplate(含)前动态修改
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:WeChatWASM.BuildTemplate.CheckCustomCoverBaseConflict(System.String,System.String,System.String[])">
|
<member name="M:WeChatWASM.BuildTemplate.CheckCustomCoverBaseConflict(System.String,System.String,System.String[])">
|
||||||
@ -34,6 +34,20 @@
|
|||||||
构建模板覆盖至输出目录
|
构建模板覆盖至输出目录
|
||||||
</summary>
|
</summary>
|
||||||
</member>
|
</member>
|
||||||
|
<member name="M:WeChatWASM.BuildTemplate.mergeJSON(System.String,System.String)">
|
||||||
|
<summary>
|
||||||
|
合并JSON
|
||||||
|
</summary>
|
||||||
|
</member>
|
||||||
|
<member name="M:WeChatWASM.BuildTemplate.mergeJsonA2B(LitJson.JsonData,LitJson.JsonData)">
|
||||||
|
<summary>
|
||||||
|
合并A与B
|
||||||
|
规则:将a中的节点覆盖/新增至b中,其中只会覆盖Key-Value节点,数组节点会整枝覆盖
|
||||||
|
</summary>
|
||||||
|
<param name="a"></param>
|
||||||
|
<param name="b"></param>
|
||||||
|
<returns></returns>
|
||||||
|
</member>
|
||||||
<member name="M:WeChatWASM.BuildTemplate.ForceCopy(System.String,System.String,System.String[],System.Boolean)">
|
<member name="M:WeChatWASM.BuildTemplate.ForceCopy(System.String,System.String,System.String[],System.Boolean)">
|
||||||
<summary>
|
<summary>
|
||||||
强制将 srcDir 目录中资源逐层覆盖至 dstDir 目录中
|
强制将 srcDir 目录中资源逐层覆盖至 dstDir 目录中
|
||||||
|
|||||||
Binary file not shown.
@ -23,7 +23,7 @@
|
|||||||
],
|
],
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"UnityPlugin": {
|
"UnityPlugin": {
|
||||||
"version": "1.2.54",
|
"version": "1.2.52",
|
||||||
"provider": "wxe5a48f1ed5f544b7",
|
"provider": "wxe5a48f1ed5f544b7",
|
||||||
"contexts": [
|
"contexts": [
|
||||||
{
|
{
|
||||||
|
|||||||
15
package.json
15
package.json
@ -1 +1,14 @@
|
|||||||
{"name":"com.qq.weixin.minigame","displayName":"WXSDK","description":"WeChat Mini Game Tuanjie Engine Adapter SDK Package.","version":"0.1.15","unity":"2019.4","unityRelease":"29f1","keywords":["Tuanjie","WX"],"dependencies":{}}
|
{
|
||||||
|
"name": "com.qq.weixin.minigame",
|
||||||
|
"displayName": "WXSDK",
|
||||||
|
"description": "WeChat Mini Game Tuanjie Engine Adapter SDK Package.",
|
||||||
|
"version": "0.1.1",
|
||||||
|
"unity": "2019.4",
|
||||||
|
"unityRelease": "29f1",
|
||||||
|
"keywords": [
|
||||||
|
"Tuanjie",
|
||||||
|
"WX"
|
||||||
|
],
|
||||||
|
"dependencies": {
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user