1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Update BeefBuild to use new custom build properties API.

This commit is contained in:
LAPTOP-NV8MPI8C\Yuvan Wickramasinghe 2025-03-27 17:13:08 -07:00
parent 275dbd14e8
commit 80a72f991d
No known key found for this signature in database
5 changed files with 30 additions and 39 deletions

View file

@ -987,6 +987,7 @@ namespace IDE
mWorkspace.mName = new String();
Path.GetFileName(mWorkspace.mDir, mWorkspace.mName);
CustomBuildProperties.Load();
LoadWorkspace(.OpenOrNew);
FinishShowingNewWorkspace();
}
@ -2258,18 +2259,6 @@ namespace IDE
outResult.Append(mInstallDir, "/DefaultLayout.toml");
}
void GetPropertiesFileName(String outResult)
{
String workspaceDir = scope String();
if (mWorkspace.mDir == null)
Directory.GetCurrentDirectory(workspaceDir);
else
workspaceDir = mWorkspace.mDir;
outResult.Append(workspaceDir, "/BeefProperties.toml");
}
bool GetWorkspaceFileName(String outResult)
{
if (mWorkspace.mDir == null)
@ -2973,8 +2962,6 @@ namespace IDE
{
scope AutoBeefPerf("IDEApp.LoadWorkspace");
CustomBuildProperties.Load();
AddRecentFile(.OpenedWorkspace, mWorkspace.mDir);
StructuredData data = null;
@ -3149,15 +3136,6 @@ namespace IDE
LoadFailed();
continue;
}
else if (projSpec.mVerSpec case .Path(let projPath))
{
String resolvedProjPath = scope String();
if (gApp.ResolveConfigString(null, null, null, null, projPath, "custom properties", resolvedProjPath))
{
projPath.Clear();
projPath.Append(resolvedProjPath);
}
}
switch (AddProject(projectName, projSpec.mVerSpec))
{
@ -3207,6 +3185,7 @@ namespace IDE
CloseWorkspace();
mWorkspace.mDir = new String(workspaceDir);
mWorkspace.mName = new String(workspaceName);
CustomBuildProperties.Load();
LoadWorkspace(.Open);
FinishShowingNewWorkspace();
}