Add beta changelogs

This commit is contained in:
Felix Miller
2022-03-25 16:00:01 -04:00
parent 274aa43b35
commit c688edf09f
3 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ namespace PckStudio.Classes
{
public static string Version = "6.4";
public static bool Beta = true;
public static bool Portable = true;
public static bool Portable = false;
public static bool NeedsUpdate = false;
public static string MainURL = "https://www.pckstudio.xyz/";
public static string BackURL = "http://phoenixarc.ddns.net/";
+16 -4
View File
@@ -1622,11 +1622,23 @@ namespace PckStudio
{
using (WebClient client = new WebClient())
{
if(isdebug)
File.WriteAllText(appData + "pckStudioChangelog.txt", File.ReadAllText("C:\\WEBSITES\\PCKStudio\\studio\\PCK\\api\\" + ChangeURL.Text));
else
File.WriteAllText(appData + "pckStudioChangelog.txt", client.DownloadString(basurl + ChangeURL.Text));
if (Classes.Network.Beta)
{
if (isdebug)
File.WriteAllText(appData + "pckStudioChangelog.txt", File.ReadAllText("C:\\WEBSITES\\PCKStudio\\studio\\PCK\\api\\" + ChangeURL.Text.Replace("ChangeLog", "BetaChangeLog"))) ;
else
File.WriteAllText(appData + "pckStudioChangelog.txt", client.DownloadString(basurl + ChangeURL.Text.Replace("ChangeLog", "BetaChangeLog")));
richTextBoxChangelog.Text = File.ReadAllText(appData + "pckStudioChangelog.txt");
}
else
{
if (isdebug)
File.WriteAllText(appData + "pckStudioChangelog.txt", File.ReadAllText("C:\\WEBSITES\\PCKStudio\\studio\\PCK\\api\\" + ChangeURL.Text));
else
File.WriteAllText(appData + "pckStudioChangelog.txt", client.DownloadString(basurl + ChangeURL.Text));
richTextBoxChangelog.Text = File.ReadAllText(appData + "pckStudioChangelog.txt");
}
}
}
catch