2021-03-30 14:23:41 +08:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
using UnityEditor;
|
|
|
|
|
|
using UnityEditor.Callbacks;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class MyBuildPostprocessor
|
|
|
|
|
|
{
|
|
|
|
|
|
[PostProcessBuild]
|
|
|
|
|
|
public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject)
|
|
|
|
|
|
{
|
|
|
|
|
|
//Debug.Log(pathToBuiltProject);
|
|
|
|
|
|
//System.IO.File.AppendAllText("D:\\test.txt",pathToBuiltProject);
|
|
|
|
|
|
var dir = Path.GetDirectoryName(pathToBuiltProject);
|
|
|
|
|
|
|
2021-04-29 22:05:19 +08:00
|
|
|
|
File.Copy(dir + "\\PowerFun_Data\\Plugins\\x86_64\\ANT_WrappedLib.dll", dir + "\\PowerFun_Data\\Managed\\ANT_WrappedLib.dll");
|
|
|
|
|
|
File.Copy(dir + "\\PowerFun_Data\\Plugins\\x86_64\\DSI_CP210xManufacturing_3_1.dll", dir + "\\PowerFun_Data\\Managed\\DSI_CP210xManufacturing_3_1.dll");
|
|
|
|
|
|
File.Copy(dir + "\\PowerFun_Data\\Plugins\\x86_64\\DSI_SiUSBXp_3_1.dll", dir + "\\PowerFun_Data\\Managed\\DSI_SiUSBXp_3_1.dll");
|
2021-03-30 14:23:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|