Create node_modules folder if it doesn't exist
This commit is contained in:
parent
456852070e
commit
2b32ffac01
|
@ -41,7 +41,7 @@
|
|||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="asardotnet">
|
||||
<HintPath>..\dlls\asardotnet.dll</HintPath>
|
||||
<HintPath>..\..\..\..\WindowsInstaller\asardotnet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
|
|
|
@ -121,6 +121,12 @@ namespace BetterDiscordWI.panels {
|
|||
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";
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue