Create node_modules folder if it doesn't exist
This commit is contained in:
parent
456852070e
commit
2b32ffac01
|
@ -41,7 +41,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="asardotnet">
|
<Reference Include="asardotnet">
|
||||||
<HintPath>..\dlls\asardotnet.dll</HintPath>
|
<HintPath>..\..\..\..\WindowsInstaller\asardotnet.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
|
|
|
@ -121,6 +121,12 @@ namespace BetterDiscordWI.panels {
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!Directory.Exists($"{GetParent().DiscordPath}\\resources\\node_modules\\")) {
|
||||||
|
Debug.Print("node_modules doesn't exist, creating");
|
||||||
|
AppendLog("node_modules doesn't exist, creating");
|
||||||
|
Directory.CreateDirectory($"{GetParent().DiscordPath}\\resources\\node_modules\\");
|
||||||
|
}
|
||||||
|
|
||||||
dir = $"{GetParent().DiscordPath}\\resources\\node_modules\\BetterDiscord";
|
dir = $"{GetParent().DiscordPath}\\resources\\node_modules\\BetterDiscord";
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue