mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
centralise all plugin env folders in Environments directory
This commit is contained in:
parent
f76e2962e6
commit
2dcd4d7b9c
1 changed files with 5 additions and 3 deletions
|
|
@ -134,10 +134,12 @@ namespace Flow.Launcher.Core.ExternalPlugins
|
|||
|
||||
private void InstallEnvironment(string languageType)
|
||||
{
|
||||
var environments = "Environments";
|
||||
|
||||
switch (languageType)
|
||||
{//TODO: UPDATE TO USE CENTRALISED PLUGINENVIRONMENT FOLDER
|
||||
{
|
||||
case AllowedLanguage.Python:
|
||||
var pythonDirPath = Path.Combine(DataLocation.DataDirectory(), "PythonEmbeddable");
|
||||
var pythonDirPath = Path.Combine(DataLocation.DataDirectory(), environments, "PythonEmbeddable");
|
||||
FilesFolders.RemoveFolderIfExists(pythonDirPath);
|
||||
|
||||
// Python 3.8.9 is used for Windows 7 compatibility
|
||||
|
|
@ -148,7 +150,7 @@ namespace Flow.Launcher.Core.ExternalPlugins
|
|||
|
||||
case AllowedLanguage.TypeScript:
|
||||
case AllowedLanguage.JavaScript:
|
||||
var nodeDirPath = Path.Combine(DataLocation.DataDirectory(), "Node");
|
||||
var nodeDirPath = Path.Combine(DataLocation.DataDirectory(), environments, "Node");
|
||||
FilesFolders.RemoveFolderIfExists(nodeDirPath);
|
||||
|
||||
DroplexPackage.Drop(App.nodejs_16_18_0, nodeDirPath).Wait();
|
||||
|
|
|
|||
Loading…
Reference in a new issue