Auto-publish.

This commit is contained in:
nebulaliu 2024-06-07 14:40:45 +08:00
parent 9ce19adac1
commit 680c4b7e34
9 changed files with 48 additions and 11 deletions

View File

@ -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
@ -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");
} }

View File

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

View File

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

View File

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

View File

@ -23,7 +23,7 @@
], ],
"plugins": { "plugins": {
"UnityPlugin": { "UnityPlugin": {
"version": "1.2.54", "version": "1.2.52",
"provider": "wxe5a48f1ed5f544b7", "provider": "wxe5a48f1ed5f544b7",
"contexts": [ "contexts": [
{ {

View File

@ -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": {
}
}