Unity打包Pc(Windows)後,複製一個exe到打包後的Plugins資料夾
#if UNITY_STANDALONE_WIN
[UnityEditor.Callbacks.PostProcessBuild(999)]
public static void OnPostprocessBuild (UnityEditor.BuildTarget BuildTarget, string path)
{
if (BuildTarget != UnityEditor.BuildTarget.StandaloneWindows)
return;
//PC(WINDOWS)打包後期指令碼:複製abc.exe到打包後的Plugins資料夾
UnityEngine.Debug.Log (path);
var strPathFrom= UnityEngine.Application.dataPath +"/Plugins/x86/abc.exe";
var nIdxSlash = path.LastIndexOf ('/');
var nIdxDot = path.LastIndexOf ('.');
var strRootTarget = path.Substring ( 0 , nIdxSlash ) ;
var strPathTargetFile = strRootTarget + path.Substring( nIdxSlash , nIdxDot-nIdxSlash )+"_Data/Plugins/abc.exe";
System.IO.File.Copy(strPathFrom,strPathTargetFile);
UnityEngine.Debug.Log ( "複製" + strPathFrom + "\t到\t"+strPathTargetFile);
}
#endif
相關文章
- pyinstaller打包exe--requests模組打包後無法執行
- 關於Unity Plugins資料夾UnityPlugin
- 批量打包一個資料夾下的多個目錄
- maven專案打包說有依賴jar包到一個資料夾MavenJAR
- C# 將資料夾中檔案複製到另一個資料夾C#
- winform程式打包後 只能執行一個ORM
- Inno Step 打包檔案成.exe時候刪除指定資料夾
- 複習webpack4之使用plugins便捷打包WebPlugin
- (轉)Unity Assets目錄下的特殊資料夾名稱(作用和是否會被打包到build中)UnityUI
- python複製資料夾到一個目錄,或者按目錄層級建立複製Python
- Python 打包 windows 可執行的 exe 檔案PythonWindows
- 使用exe4j打包exe
- java打包.jar及.exeJavaJAR
- django打包成exe格式Django
- 使用tar打包,如何排除某些資料夾呢?
- AIX上打包排除某些檔案/資料夾AI
- vue打包後,訪問不到Vue
- unity安卓打包的問題Unity安卓
- linux複製檔案到另一個資料夾怎麼操作 linux複製檔案的命令介紹Linux
- linux[批量複製並重新命名]和[批量複製檔案到多個資料夾]Linux
- java打包exe程式需要注意的幾個地方Java
- [Android]Ziplign打包最後一步Android
- 在windows下匯入react專案並且打包編譯後部署到nginx上WindowsReact編譯Nginx
- WINDOWS自動打包目錄指令碼 複製到遠端備份伺服器儲存Windows指令碼伺服器
- 如何讓bat,cmd檔案後臺執行?如何把檔案打包成EXE?BAT
- vue修改打包後靜態資源路徑Vue
- Unity——WegGL打包問題Unity
- Unity——AssetBundle打包工具Unity
- 重灌Windows XP系統後資料夾不能訪問Windows
- SqlServer將資料庫中的表複製到另一個資料庫SQLServer資料庫
- SFMPQ打包工具完後小結
- python程式碼打包exe程式Python
- Windows 複製 xcopy 檔案到另外一個 目錄Windows
- 從庫誤刪資料後 gtid 複製斷開後的恢復
- python的py檔案打包成exePython
- 資料庫移植後高階複製出錯資料庫
- pyinstaller打包pytest+allure框架的程式碼後,執行時exe: error: unrecognized arguments: --alluredir框架ErrorZed
- 解決vue打包專案後點選dist資料夾中的index.html網頁顯示一片空白的問題VueIndexHTML網頁