diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index 269dd3cd5..f6e36708f 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -510,6 +510,7 @@ private void ApplyModifications() Directory.CreateDirectory(directory); File.Copy(fileModFolder, fileVersionFolder, true); + File.SetAttributes(fileVersionFolder, File.GetAttributes(fileModFolder) & ~FileAttributes.ReadOnly); } // now check for files that have been deleted from the mod folder diff --git a/Bloxstrap/Dialogs/BootstrapperStyles/BootstrapperStyleForm.cs b/Bloxstrap/Dialogs/BootstrapperStyles/BootstrapperStyleForm.cs index 09b78813c..1c4134701 100644 --- a/Bloxstrap/Dialogs/BootstrapperStyles/BootstrapperStyleForm.cs +++ b/Bloxstrap/Dialogs/BootstrapperStyles/BootstrapperStyleForm.cs @@ -82,6 +82,9 @@ public async void RunBootstrapper() if (Bootstrapper is null) return; +#if DEBUG + await Bootstrapper.Run(); +#else try { await Bootstrapper.Run(); @@ -92,6 +95,7 @@ public async void RunBootstrapper() string message = ex.ToString(); ShowError(message); } +#endif } public virtual void ShowSuccess(string message)