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;
#endif
#endif
EditorSettings.spritePackerMode = SpritePackerMode.AlwaysOnAtlas;
}
public enum WXExportError
@ -285,7 +284,7 @@ namespace WeChatWASM
string[] res = BuildTemplate.CheckCustomCoverBaseConflict(
Path.Combine(UnityUtil.GetWxSDKRootPath(), "Runtime", "wechat-default"),
Path.Combine(Application.dataPath, "WX-WASM-SDK-V2", "Editor", "template"),
new string[]{ @"\.(js|ts|json)$" }
new string[] { @"\.(js|ts|json)$" }
);
if (res.Length != 0)
{
@ -1160,7 +1159,7 @@ namespace WeChatWASM
for (int i = 1; i < unicodeCodes.Count; i++)
{
if(unicodeCodes[i] == endRange)
if (unicodeCodes[i] == endRange)
{
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" };
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);
UnityEngine.Debug.LogFormat("[Converter] that to modify configs ended");
}

View File

@ -52,6 +52,11 @@ namespace WeChatWASM
#else
WXExtEnvDef.SETDEF("UNITY_EDITOR_OSX", false);
#endif
#if UNITY_EDITOR_LINUX
WXExtEnvDef.SETDEF("UNITY_EDITOR_LINUX", true);
#else
WXExtEnvDef.SETDEF("UNITY_EDITOR_LINUX", false);
#endif
#if UNITY_2020
WXExtEnvDef.SETDEF("UNITY_2020", true);
#else
@ -110,7 +115,8 @@ namespace WeChatWASM
{
return WXConvertCore.UseIL2CPP;
});
WXExtEnvDef.RegisterAction("UnityUtil.GetWxSDKRootPath", (args) => {
WXExtEnvDef.RegisterAction("UnityUtil.GetWxSDKRootPath", (args) =>
{
#if UNITY_2018
return Path.Combine(Application.dataPath, "WX-WASM-SDK-V2");
#else
@ -128,7 +134,8 @@ namespace WeChatWASM
return dir.FullName;
#endif
});
WXExtEnvDef.RegisterAction("UnityUtil.IsAssets", (args) => {
WXExtEnvDef.RegisterAction("UnityUtil.IsAssets", (args) =>
{
#if UNITY_2018
return true;
#else

View File

@ -2,7 +2,7 @@
{
public class WXPluginVersion
{
public static string pluginVersion = "202405171605"; // 这一行不要改他,导出的时候会自动替换
public static string pluginVersion = "202405201546"; // 这一行不要改他,导出的时候会自动替换
}
public class WXPluginConf

Binary file not shown.

View File

@ -11,7 +11,7 @@
</member>
<member name="F:WeChatWASM.BuildTemplate.IgnoreRules">
<summary>
复制覆盖时不参与覆盖的正则表达式,可动态修改
复制覆盖时不参与覆盖的正则表达式,可在 beforeCoverTemplate动态修改
</summary>
</member>
<member name="M:WeChatWASM.BuildTemplate.CheckCustomCoverBaseConflict(System.String,System.String,System.String[])">
@ -34,6 +34,20 @@
构建模板覆盖至输出目录
</summary>
</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)">
<summary>
强制将 srcDir 目录中资源逐层覆盖至 dstDir 目录中

Binary file not shown.

View File

@ -23,7 +23,7 @@
],
"plugins": {
"UnityPlugin": {
"version": "1.2.54",
"version": "1.2.52",
"provider": "wxe5a48f1ed5f544b7",
"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": {
}
}