rem copy res src config.json
@echo off
set DIR=%~dp0
set APP_ASSETS_ROOT=%DIR%frameworks\runtime-src\proj.android\assets\
echo APP_ASSETS_ROOT = %APP_ASSETS_ROOT%
if exist %APP_ASSETS_ROOT% rmdir /s /q %APP_ASSETS_ROOT%
mkdir %APP_ASSETS_ROOT%
xcopy /s /q "%DIR%res\*.*" %APP_ASSETS_ROOT%res\*.* /y
xcopy /s /q "%DIR%src\*.*" %APP_ASSETS_ROOT%src\*.* /y
copy "%DIR%config.json" %APP_ASSETS_ROOT%config.json
@echo off
set DIR=%~dp0
set APP_ASSETS_ROOT=%DIR%frameworks\runtime-src\proj.android\assets\
echo APP_ASSETS_ROOT = %APP_ASSETS_ROOT%
if exist %APP_ASSETS_ROOT% rmdir /s /q %APP_ASSETS_ROOT%
mkdir %APP_ASSETS_ROOT%
xcopy /s /q "%DIR%res\*.*" %APP_ASSETS_ROOT%res\*.* /y
xcopy /s /q "%DIR%src\*.*" %APP_ASSETS_ROOT%src\*.* /y
copy "%DIR%config.json" %APP_ASSETS_ROOT%config.json

本文介绍了一个用于自动化复制资源文件到指定目录的批处理脚本。该脚本能够清除并重建目标目录,然后将资源、源代码及配置文件从一个位置复制到另一个位置。适用于游戏开发或应用程序构建过程中的资源管理。
6538

被折叠的 条评论
为什么被折叠?



