unsafeEcho调整成echi()

This commit is contained in:
mwh 2025-12-26 18:06:48 +08:00
parent c818f2a486
commit c441e171df
2 changed files with 6 additions and 5 deletions

View File

@ -3,12 +3,13 @@
// Copyright Byway Studios Inc. All rights reserved
//=================================================================
def call(config){
echo("clear AB begin")
//Clean any previously build asset bundles
bat """
if exist "${WORKSPACE}\\AB" del /F /S /Q "${WORKSPACE}\\AB\\*"
"""
unsafeEcho "execUnityMethod begin"
echo("execUnityMethod begin")
//Generate AssetBundle to AB //params: is Clean packageCache,Build Method
execUnityMethod_Windows(config.alwaysClearPackageCache, "MyBuildTool.StartBuildAndroid")

View File

@ -4,15 +4,15 @@
//=================================================================
def call(pathToProjectVersion)
{
unsafeEcho "Detected Unity Version begin"
echo("Detected Unity Version begin")
String projectVersionContents = readFile(pathToProjectVersion)
unsafeEcho "Get projectVersionContents: " + projectVersionContents
echo("Get projectVersionContents: " + projectVersionContents)
String unityVersion = projectVersionContents.split('\n')[0].split(':')[1].trim()
unsafeEcho "Detected Unity Version as: " + unityVersion
echo("Detected Unity Version as: " + unityVersion)
return unityVersion
}