代码加密使用luajit加密
具体文件路径就是:
....\frameworks\cocos2d-x\external\lua\luajit\src\src
加密的工具windows bat批处理:
代码如下:
@echo off if exist out rd /s /q out mkdir out :input cls set input=: set /p input= ÍÏÈëÒª±àÒëµÄluaÎļþ¼Ð£º set "input=%input:"=%" if "%input%"==":" goto input if not exist "%input%" goto input for %%i in ("%input%") do if /i "%%~di"==%%i goto input pushd %cd% cd /d "%input%">nul 2>nul || exit set cur_dir=%cd% popd set /a num = 0 for /f "delims=" %%i in ('dir /b /a-d /s "%input%"') do (set /a num += 1 & luajit -b %%~fsi out/%%~nxi & echo %%~nxi) echo ±àÒë½Å±¾ÊýÁ¿£º%num% ATTRIB out/*.* +R pause
由于字符集的原因,乱码部分是中文,你可以替换就OK,或者不管他
时间: 2024-10-11 17:49:36