mirror of
https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git
synced 2025-11-13 11:45:55 +08:00
Auto-publish.
This commit is contained in:
parent
9ce19adac1
commit
680c4b7e34
@ -61,7 +61,6 @@ namespace WeChatWASM
|
||||
PlayerSettings.WebGL.debugSymbols = true;
|
||||
#endif
|
||||
#endif
|
||||
EditorSettings.spritePackerMode = SpritePackerMode.AlwaysOnAtlas;
|
||||
}
|
||||
|
||||
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" };
|
||||
|
||||
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");
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
{
|
||||
public class WXPluginVersion
|
||||
{
|
||||
public static string pluginVersion = "202405171605"; // 这一行不要改他,导出的时候会自动替换
|
||||
public static string pluginVersion = "202405201546"; // 这一行不要改他,导出的时候会自动替换
|
||||
}
|
||||
|
||||
public class WXPluginConf
|
||||
|
||||
Binary file not shown.
@ -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.
Binary file not shown.
@ -23,7 +23,7 @@
|
||||
],
|
||||
"plugins": {
|
||||
"UnityPlugin": {
|
||||
"version": "1.2.54",
|
||||
"version": "1.2.52",
|
||||
"provider": "wxe5a48f1ed5f544b7",
|
||||
"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