mirror of
https://github.com/wechat-miniprogram/minigame-tuanjie-transform-sdk.git
synced 2025-11-13 11:45:55 +08:00
Fix framework output path
This commit is contained in:
parent
fe8d29ef2f
commit
6847b07f20
@ -497,7 +497,7 @@ GameGlobal.unityNamespace.UnityModule = unityFramework;";
|
|||||||
|
|
||||||
private static void ConvertCode()
|
private static void ConvertCode()
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.LogFormat("[Converter] Starting to adapt framewor. Dst: " + config.ProjectConf.DST);
|
UnityEngine.Debug.LogFormat("[Converter] Starting to adapt framework. Dst: " + config.ProjectConf.DST);
|
||||||
|
|
||||||
UnityUtil.DelectDir(Path.Combine(config.ProjectConf.DST, miniGameDir));
|
UnityUtil.DelectDir(Path.Combine(config.ProjectConf.DST, miniGameDir));
|
||||||
string text = String.Empty;
|
string text = String.Empty;
|
||||||
@ -611,8 +611,11 @@ GameGlobal.unityNamespace.UnityModule = unityFramework;";
|
|||||||
}
|
}
|
||||||
|
|
||||||
text = header + text;
|
text = header + text;
|
||||||
|
|
||||||
|
var targetPath = Path.Combine(config.ProjectConf.DST, miniGameDir, target);
|
||||||
if (!UseIL2CPP)
|
if (!UseIL2CPP)
|
||||||
{
|
{
|
||||||
|
targetPath = Path.Combine(config.ProjectConf.DST, miniGameDir, frameworkDir, target);
|
||||||
Rule[] nativeRules =
|
Rule[] nativeRules =
|
||||||
{
|
{
|
||||||
new Rule()
|
new Rule()
|
||||||
@ -654,7 +657,7 @@ GameGlobal.unityNamespace.UnityModule = unityFramework;";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
File.WriteAllText(Path.Combine(config.ProjectConf.DST, miniGameDir, target), text, new UTF8Encoding(false));
|
File.WriteAllText(targetPath, text, new UTF8Encoding(false));
|
||||||
|
|
||||||
UnityEngine.Debug.LogFormat("[Converter] adapt framework done! ");
|
UnityEngine.Debug.LogFormat("[Converter] adapt framework done! ");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user