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

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/";

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

View File

@@ -3,7 +3,7 @@
<Product Id="*"
Name="PCK Studio"
Language="1033"
Version="6.4.0.0"
Version="6.4.0.1"
Manufacturer="PhoenixARC"
UpgradeCode="0bfb1026-21f2-4552-ad71-ca90aae10a25">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perUser" />