PC平台打包目录多一层

This commit is contained in:
sin365 2025-10-24 02:03:08 +08:00
parent ac83c236ef
commit 9bed2f1597

View File

@ -88,8 +88,17 @@ public static class AxiAutoBuild
_ => "",
};
string targetplatformDir = target.ToString();
string _locationPathName = $"Output/{target}/{targetName}";
targetplatformDir += target switch
{
//PC 平台目录追加一层时间
BuildTarget.StandaloneWindows => "/"+ DateTime.Now.ToString("yyyyMMddHHmmss"),
_ => "",
};
string _locationPathName = $"Output/{targetplatformDir}/{targetName}";
string FullPath = Path.GetFullPath(Path.Combine(Application.dataPath, "..", _locationPathName));
string dirPath = Path.GetDirectoryName(FullPath);
if (!Directory.Exists(dirPath))