diff --git a/README.md b/README.md index c8546833..f0a792a9 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,10 @@ ### 部署安装 目前支持XLua、SLua、ToLua,Unity的版本在5.6(包括5.6)以上 -- Window用户直接点击运行相应Lua插件的exe即可,(用mac的大佬暂时自己加注释,或者用mono运行exe吧) -- 把LuaProfiler文件夹Copy到Assets 非Plugin、Editor目录下。 - +- 打开Release目录,或者下载Release的zip +- Window用户直接点击运行相应Lua插件的exe即可,mac运行对应的shell文件进行配置 +- 把`Release\LuaProfiler`文件夹Copy到Assets 非Plugin、Editor目录下。 +- 如果配置炸了,就手动改注释 ``` // 把LuaHookSetup.cs 文件头的宏替换为 #define XLUA diff --git a/LuaProfiler/Common.meta b/Release/LuaProfiler/Common.meta similarity index 100% rename from LuaProfiler/Common.meta rename to Release/LuaProfiler/Common.meta diff --git a/LuaProfiler/Common/Editor.meta b/Release/LuaProfiler/Common/Editor.meta similarity index 100% rename from LuaProfiler/Common/Editor.meta rename to Release/LuaProfiler/Common/Editor.meta diff --git a/LuaProfiler/Common/Editor/LocalToLuaIDE.cs b/Release/LuaProfiler/Common/Editor/LocalToLuaIDE.cs similarity index 100% rename from LuaProfiler/Common/Editor/LocalToLuaIDE.cs rename to Release/LuaProfiler/Common/Editor/LocalToLuaIDE.cs diff --git a/LuaProfiler/Common/Editor/LocalToLuaIDE.cs.meta b/Release/LuaProfiler/Common/Editor/LocalToLuaIDE.cs.meta similarity index 100% rename from LuaProfiler/Common/Editor/LocalToLuaIDE.cs.meta rename to Release/LuaProfiler/Common/Editor/LocalToLuaIDE.cs.meta diff --git a/LuaProfiler/Common/Editor/TreeView.meta b/Release/LuaProfiler/Common/Editor/TreeView.meta similarity index 100% rename from LuaProfiler/Common/Editor/TreeView.meta rename to Release/LuaProfiler/Common/Editor/TreeView.meta diff --git a/LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs b/Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs similarity index 100% rename from LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs rename to Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs diff --git a/LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs.meta b/Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs.meta similarity index 100% rename from LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs.meta rename to Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerTreeView.cs.meta diff --git a/LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs b/Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs similarity index 100% rename from LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs rename to Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs diff --git a/LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs.meta b/Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs.meta similarity index 100% rename from LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs.meta rename to Release/LuaProfiler/Common/Editor/TreeView/LuaProfilerWindow.cs.meta diff --git a/LuaProfiler/Common/GameViewUtility.cs b/Release/LuaProfiler/Common/GameViewUtility.cs similarity index 100% rename from LuaProfiler/Common/GameViewUtility.cs rename to Release/LuaProfiler/Common/GameViewUtility.cs diff --git a/LuaProfiler/Common/GameViewUtility.cs.meta b/Release/LuaProfiler/Common/GameViewUtility.cs.meta similarity index 100% rename from LuaProfiler/Common/GameViewUtility.cs.meta rename to Release/LuaProfiler/Common/GameViewUtility.cs.meta diff --git a/LuaProfiler/Common/LuaDeepProfilerSetting.cs b/Release/LuaProfiler/Common/LuaDeepProfilerSetting.cs similarity index 100% rename from LuaProfiler/Common/LuaDeepProfilerSetting.cs rename to Release/LuaProfiler/Common/LuaDeepProfilerSetting.cs diff --git a/LuaProfiler/Common/LuaDeepProfilerSetting.cs.meta b/Release/LuaProfiler/Common/LuaDeepProfilerSetting.cs.meta similarity index 100% rename from LuaProfiler/Common/LuaDeepProfilerSetting.cs.meta rename to Release/LuaProfiler/Common/LuaDeepProfilerSetting.cs.meta diff --git a/LuaProfiler/Common/LuaProfiler.cs b/Release/LuaProfiler/Common/LuaProfiler.cs similarity index 100% rename from LuaProfiler/Common/LuaProfiler.cs rename to Release/LuaProfiler/Common/LuaProfiler.cs diff --git a/LuaProfiler/Common/LuaProfiler.cs.meta b/Release/LuaProfiler/Common/LuaProfiler.cs.meta similarity index 100% rename from LuaProfiler/Common/LuaProfiler.cs.meta rename to Release/LuaProfiler/Common/LuaProfiler.cs.meta diff --git a/LuaProfiler/Common/ObjectPool.cs b/Release/LuaProfiler/Common/ObjectPool.cs similarity index 100% rename from LuaProfiler/Common/ObjectPool.cs rename to Release/LuaProfiler/Common/ObjectPool.cs diff --git a/LuaProfiler/Common/ObjectPool.cs.meta b/Release/LuaProfiler/Common/ObjectPool.cs.meta similarity index 100% rename from LuaProfiler/Common/ObjectPool.cs.meta rename to Release/LuaProfiler/Common/ObjectPool.cs.meta diff --git a/LuaProfiler/Common/Parse.meta b/Release/LuaProfiler/Common/Parse.meta similarity index 100% rename from LuaProfiler/Common/Parse.meta rename to Release/LuaProfiler/Common/Parse.meta diff --git a/LuaProfiler/Common/Parse/Common.cs b/Release/LuaProfiler/Common/Parse/Common.cs similarity index 100% rename from LuaProfiler/Common/Parse/Common.cs rename to Release/LuaProfiler/Common/Parse/Common.cs diff --git a/LuaProfiler/Common/Parse/Common.cs.meta b/Release/LuaProfiler/Common/Parse/Common.cs.meta similarity index 100% rename from LuaProfiler/Common/Parse/Common.cs.meta rename to Release/LuaProfiler/Common/Parse/Common.cs.meta diff --git a/LuaProfiler/Common/Parse/LLex.cs b/Release/LuaProfiler/Common/Parse/LLex.cs similarity index 100% rename from LuaProfiler/Common/Parse/LLex.cs rename to Release/LuaProfiler/Common/Parse/LLex.cs diff --git a/LuaProfiler/Common/Parse/LLex.cs.meta b/Release/LuaProfiler/Common/Parse/LLex.cs.meta similarity index 100% rename from LuaProfiler/Common/Parse/LLex.cs.meta rename to Release/LuaProfiler/Common/Parse/LLex.cs.meta diff --git a/LuaProfiler/Common/Parse/Parse.cs b/Release/LuaProfiler/Common/Parse/Parse.cs similarity index 100% rename from LuaProfiler/Common/Parse/Parse.cs rename to Release/LuaProfiler/Common/Parse/Parse.cs diff --git a/LuaProfiler/Common/Parse/Parse.cs.meta b/Release/LuaProfiler/Common/Parse/Parse.cs.meta similarity index 100% rename from LuaProfiler/Common/Parse/Parse.cs.meta rename to Release/LuaProfiler/Common/Parse/Parse.cs.meta diff --git a/LuaProfiler/Common/Parse/Util.cs b/Release/LuaProfiler/Common/Parse/Util.cs similarity index 100% rename from LuaProfiler/Common/Parse/Util.cs rename to Release/LuaProfiler/Common/Parse/Util.cs diff --git a/LuaProfiler/Common/Parse/Util.cs.meta b/Release/LuaProfiler/Common/Parse/Util.cs.meta similarity index 100% rename from LuaProfiler/Common/Parse/Util.cs.meta rename to Release/LuaProfiler/Common/Parse/Util.cs.meta diff --git a/LuaProfiler/Common/Plugins.meta b/Release/LuaProfiler/Common/Plugins.meta similarity index 100% rename from LuaProfiler/Common/Plugins.meta rename to Release/LuaProfiler/Common/Plugins.meta diff --git a/LuaProfiler/Common/Plugins/MonoHook.dll b/Release/LuaProfiler/Common/Plugins/MonoHook.dll similarity index 100% rename from LuaProfiler/Common/Plugins/MonoHook.dll rename to Release/LuaProfiler/Common/Plugins/MonoHook.dll diff --git a/LuaProfiler/Common/Plugins/MonoHook.dll.meta b/Release/LuaProfiler/Common/Plugins/MonoHook.dll.meta similarity index 100% rename from LuaProfiler/Common/Plugins/MonoHook.dll.meta rename to Release/LuaProfiler/Common/Plugins/MonoHook.dll.meta diff --git a/LuaProfiler/Common/Sample.cs b/Release/LuaProfiler/Common/Sample.cs similarity index 100% rename from LuaProfiler/Common/Sample.cs rename to Release/LuaProfiler/Common/Sample.cs diff --git a/LuaProfiler/Common/Sample.cs.meta b/Release/LuaProfiler/Common/Sample.cs.meta similarity index 100% rename from LuaProfiler/Common/Sample.cs.meta rename to Release/LuaProfiler/Common/Sample.cs.meta diff --git a/LuaProfiler/LuaHookSetup.cs b/Release/LuaProfiler/LuaHookSetup.cs similarity index 100% rename from LuaProfiler/LuaHookSetup.cs rename to Release/LuaProfiler/LuaHookSetup.cs diff --git a/LuaProfiler/LuaHookSetup.cs.meta b/Release/LuaProfiler/LuaHookSetup.cs.meta similarity index 100% rename from LuaProfiler/LuaHookSetup.cs.meta rename to Release/LuaProfiler/LuaHookSetup.cs.meta diff --git a/SLUA.exe b/Release/SLUA.exe similarity index 100% rename from SLUA.exe rename to Release/SLUA.exe diff --git a/Release/SLUA.sh b/Release/SLUA.sh new file mode 100644 index 00000000..5fbb839a --- /dev/null +++ b/Release/SLUA.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +/Contents/MonoBleedingEdge/lib/mono SLUA.exe \ No newline at end of file diff --git a/TOLUA.exe b/Release/TOLUA.exe similarity index 100% rename from TOLUA.exe rename to Release/TOLUA.exe diff --git a/Release/TOLUA.sh b/Release/TOLUA.sh new file mode 100644 index 00000000..dceb6b8f --- /dev/null +++ b/Release/TOLUA.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +/Contents/MonoBleedingEdge/lib/mono TOLUA.exe \ No newline at end of file diff --git a/XLUA.exe b/Release/XLUA.exe similarity index 100% rename from XLUA.exe rename to Release/XLUA.exe diff --git a/Release/XLUA.sh b/Release/XLUA.sh new file mode 100644 index 00000000..e755bb8c --- /dev/null +++ b/Release/XLUA.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +/Contents/MonoBleedingEdge/lib/mono XLUA.exe \ No newline at end of file diff --git a/link.bat b/link.bat index 33a3b1ae..0b789246 100644 --- a/link.bat +++ b/link.bat @@ -1,7 +1,7 @@ @echo off -mklink /D "%~dp0\XLua\Assets\LuaProfiler" "%~dp0\LuaProfiler" -mklink /D "%~dp0\SLua\Assets\LuaProfiler" "%~dp0\LuaProfiler" -mklink /D "%~dp0\ToLua\Assets\LuaProfiler" "%~dp0\LuaProfiler" +mklink /D "%~dp0\XLua\Assets\LuaProfiler" "%~dp0\Release\LuaProfiler" +mklink /D "%~dp0\SLua\Assets\LuaProfiler" "%~dp0\Release\LuaProfiler" +mklink /D "%~dp0\ToLua\Assets\LuaProfiler" "%~dp0\Release\LuaProfiler" pause \ No newline at end of file