Created
June 2, 2016 07:54
-
-
Save naojitaniguchi/e048caafaa906604422c0c6512c9996a to your computer and use it in GitHub Desktop.
windows batch file to publish rendered image and unity project files .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem publish batch file | |
rem set project root here | |
SET PROJ_ROOT=Y:\Pre2016TVED2\ | |
rem set sequence shot cut here | |
SET SEQ_SHOT_CUT=seq\01unity\shot\s101\\c001 | |
rem set unity_project here | |
SET UNITY_PROJ=project_01unity_s101c001 | |
SET SEQ_TOP=..\..\..\..\ | |
SET RENDER_DIR=%SEQ_TOP%%SEQ_SHOT_CUT%\renderScenes | |
SET TARGET_RENDER_DIR=%PROJ_ROOT%\%SEQ_SHOT_CUT%\renderScenes\ | |
SET TARGET_UNITY_DIR=%PROJ_ROOT%\%SEQ_SHOT_CUT%\unityScenes\%UNITY_PROJ% | |
rem check target render directory | |
IF EXIST %TARGET_RENDER_DIR% ( | |
echo "TARGET_RENDER_DIR exist" | |
) ELSE ( | |
echo "Create TARGET_RENDER_DIR" | |
mkdir %TARGET_RENDER_DIR% | |
) | |
rem copy rendered image | |
cd %RENDER_DIR% | |
xcopy * %TARGET_RENDER_DIR% /E /Y | |
rem check target unity directory | |
IF EXIST %TARGET_UNITY_DIR% ( | |
echo "TARGET_UNITY_DIR exist" | |
) ELSE ( | |
echo "Create TARGET_UNITY_DIR" | |
mkdir %TARGET_UNITY_DIR% | |
) | |
cd ..\unityScenes\%UNITY_PROJ% | |
echo D | xcopy Assets %TARGET_UNITY_DIR%\Assets /E /Y | |
echo D | xcopy ProjectSettings %TARGET_UNITY_DIR%\ProjectSettings /E /Y | |
xcopy QualitySettings.asset %TARGET_UNITY_DIR% /Y | |
xcopy TagManager.asset %TARGET_UNITY_DIR% /Y | |
echo "--------------------------" | |
echo "published to" %TARGET_RENDER_DIR% | |
echo "published to" %TARGET_UNITY_DIR% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment