1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-23 18:18:00 +02:00

Initial package management support

This commit is contained in:
Brian Fiete 2024-10-21 09:18:07 -04:00
parent 78138f5c5a
commit 4870c6fdd8
19 changed files with 2520 additions and 205 deletions

View file

@ -123,6 +123,7 @@ namespace IDE
List<String> mConfigPathQueue = new List<String>() ~ DeleteContainerAndItems!(_);
List<LibDirectory> mLibDirectories = new List<LibDirectory>() ~ DeleteContainerAndItems!(_);
List<FileSystemWatcher> mWatchers = new .() ~ DeleteContainerAndItems!(_);
public String mManagedLibPath = new .() ~ delete _;
public bool mLibsChanged;
void LibsChanged()
@ -221,6 +222,15 @@ namespace IDE
}
}
data.GetString("ManagedLibDir", mManagedLibPath);
if ((mManagedLibPath.IsEmpty) && (!mLibDirectories.IsEmpty))
{
var libPath = Path.GetAbsolutePath(mLibDirectories[0].mPath, gApp.mInstallDir, .. scope .());
var managedPath = Path.GetAbsolutePath("../BeefManaged", libPath, .. scope .());
if (Directory.Exists(managedPath))
mManagedLibPath.Set(managedPath);
}
mConfigFiles.Add(configFile);
return .Ok;