Skip to content

Instantly share code, notes, and snippets.

@dorgonman
Last active March 17, 2018 05:05
Show Gist options
  • Save dorgonman/76dd014185ca5da6b9f11ceb7da43e61 to your computer and use it in GitHub Desktop.
Save dorgonman/76dd014185ca5da6b9f11ceb7da43e61 to your computer and use it in GitHub Desktop.
ue4_build_plugin
UEBuildPlugin(){
mkdir -p "${PLUGIN_PACKAGE_ARCHIVE_DIR}"
PLUGIN_PACKAGE_ARCHIVE_DIR=$(cd "${PLUGIN_PACKAGE_ARCHIVE_DIR}"; pwd)
echo "-----------------------------------------------------"
echo "UEBuildPlugin: ${PLUGIN_FILE} ${PLUGIN_BUILD_TARGET} to ${PLUGIN_PACKAGE_ARCHIVE_DIR}"
echo "-----------------------------------------------------"
cmd=" \
'${UE4_ENGINE_ROOT}/Engine/Build/BatchFiles/RunUAT.bat' BuildPlugin \
-Plugin='${PLUGIN_FILE}' -TargetPlatforms=${PLUGIN_BUILD_TARGET} \
-Package='${PLUGIN_PACKAGE_ARCHIVE_DIR}' -rocket
"
echo ${cmd}
eval ${cmd}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment