Auto-publish WXSDK.

This commit is contained in:
M1Pro 2024-03-28 19:36:29 +08:00
parent 6496cbad05
commit fe8d29ef2f
14 changed files with 26 additions and 9 deletions

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 8c9a0d25ac0fe41788d270580f6208d9 guid: fe134d53b5bcc45a2a2cde4341229134
NativeFormatImporter: NativeFormatImporter:
externalObjects: {} externalObjects: {}
mainObjectFileID: 11400000 mainObjectFileID: 11400000

View File

@ -161,7 +161,7 @@ namespace WeChatWASM
{ {
if (!result) if (!result)
{ {
Debug.LogError("【首包资源优化异常】:" + info); Debug.LogWarning("[首资源包跳过优化]:因处理失败自动跳过" + info);
} }
finishExport(); finishExport();

View File

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

Binary file not shown.

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 89f24ea7e42cd084ab0d5bbd61fa1e3a guid: c29a7ef69f21a4d3f98e8ae4e5c78c8c
TextScriptImporter: TextScriptImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: abc091d8a2f753b49a0e435c823e2c91 guid: 286898b0c16c642bd8c6d58655b56db7
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}

View File

@ -1477,6 +1477,11 @@
原生模板广告组件的左上角纵坐标 原生模板广告组件的左上角纵坐标
</summary> </summary>
</member> </member>
<member name="F:WeChatWASM.CustomStyle.width">
<summary>
原生模板广告组件的宽度
</summary>
</member>
<member name="T:WeChatWASM.WXToTempFilePathSyncParam"> <member name="T:WeChatWASM.WXToTempFilePathSyncParam">
<summary> <summary>
将当前 Canvas 保存为一个临时文件的同步版本,详见 https://developers.weixin.qq.com/minigame/dev/api/render/canvas/Canvas.toTempFilePathSync.html 将当前 Canvas 保存为一个临时文件的同步版本,详见 https://developers.weixin.qq.com/minigame/dev/api/render/canvas/Canvas.toTempFilePathSync.html

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 7d41c663172388842a5d3b037200a60d guid: 229920fab178543bf84dadc7c49ba67f
TextScriptImporter: TextScriptImporter:
externalObjects: {} externalObjects: {}
userData: userData:

Binary file not shown.

View File

@ -1477,6 +1477,11 @@
原生模板广告组件的左上角纵坐标 原生模板广告组件的左上角纵坐标
</summary> </summary>
</member> </member>
<member name="F:WeChatWASM.CustomStyle.width">
<summary>
原生模板广告组件的宽度
</summary>
</member>
<member name="T:WeChatWASM.WXToTempFilePathSyncParam"> <member name="T:WeChatWASM.WXToTempFilePathSyncParam">
<summary> <summary>
将当前 Canvas 保存为一个临时文件的同步版本,详见 https://developers.weixin.qq.com/minigame/dev/api/render/canvas/Canvas.toTempFilePathSync.html 将当前 Canvas 保存为一个临时文件的同步版本,详见 https://developers.weixin.qq.com/minigame/dev/api/render/canvas/Canvas.toTempFilePathSync.html

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: 7cf82b7695e9a6e4f91fb8e1f00510c7 guid: 58f6f9f7425c24e2588bba8cb3973eb2
TextScriptImporter: TextScriptImporter:
externalObjects: {} externalObjects: {}
userData: userData:

View File

@ -373,7 +373,14 @@ export default {
}, },
WX_FileSystemManagerReaddirSync(dirPath) { WX_FileSystemManagerReaddirSync(dirPath) {
const fs = wx.getFileSystemManager(); const fs = wx.getFileSystemManager();
return JSON.stringify(fs.readdirSync(dirPath)); try {
return JSON.stringify(fs.readdirSync(dirPath) || []);
}
catch (e) {
console.error(e);
return '[]';
}
}, },
WX_FileSystemManagerReadCompressedFileSync(option, callbackId) { WX_FileSystemManagerReadCompressedFileSync(option, callbackId) {
const fs = wx.getFileSystemManager(); const fs = wx.getFileSystemManager();

View File

@ -1 +1 @@
{"name":"com.qq.weixin.minigame","displayName":"WXSDK","description":"WeChat Mini Game Tuanjie Engine Adapter SDK Package.","version":"0.1.3","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.5","unity":"2019.4","unityRelease":"29f1","keywords":["Tuanjie","WX"],"dependencies":{}}