Skip to content

Commit

Permalink
Merge branch 'unstable-dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
RWELabs committed Mar 21, 2023
2 parents 3fb7676 + 0a84ed4 commit 0c26335
Show file tree
Hide file tree
Showing 39 changed files with 489 additions and 333 deletions.
4 changes: 3 additions & 1 deletion installer/Moxo QuickWeb Install Script.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Moxo QuickWeb Studio"
#define MyAppVersion "230301"
#define MyAppVersion "230302"
#define MyAppPublisher "Ryan Walpole Enterprises"
#define MyAppURL "https://ryanwalpole.com/developer/moxo"
#define MyAppExeName "Moxo QuickWeb.exe"
Expand Down Expand Up @@ -34,6 +34,8 @@ SetupIconFile=C:\Users\rwalpole\Downloads\MoxoIcon.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
UninstallDisplayIcon={app}\{#MyAppExeName}
UninstallDisplayName=Moxo QuickWeb Studio

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Expand Down
2 changes: 1 addition & 1 deletion installer/cver.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
230301
230302
Binary file modified installer/installmoxoquickweb.exe
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified src/Moxo QuickWeb/.vs/Moxo QuickWeb/v17/.suo
Binary file not shown.
10 changes: 8 additions & 2 deletions src/Moxo QuickWeb/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@
<userSettings>
<Moxo_QuickWeb.Properties.Settings>
<setting name="Version" serializeAs="String">
<value>230301</value>
<value>230302</value>
</setting>
<setting name="dotLX_tmpICO" serializeAs="String">
<value />
</setting>
<setting name="BuildVersion" serializeAs="String">
<value>10031603A</value>
<value>01502103P</value>
</setting>
<setting name="CheckUpdate" serializeAs="String">
<value>TRUE</value>
</setting>
<setting name="UpdateReady" serializeAs="String">
<value />
</setting>
</Moxo_QuickWeb.Properties.Settings>
</userSettings>
Expand Down
107 changes: 60 additions & 47 deletions src/Moxo QuickWeb/Dashboard.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 86 additions & 24 deletions src/Moxo QuickWeb/Dashboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,52 @@ public Dashboard()
{
InitializeComponent();
Version.Text = "Version: " + Properties.Settings.Default.Version + "(" + Properties.Settings.Default.BuildVersion + ")";

if(Properties.Settings.Default.CheckUpdate == "TRUE")
{
UpdateCheck.RunWorkerAsync();
}
}

private void CheckForUpdates_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
CheckForUpdates.Text = "Checking for updates...";
string CurrentUpdateVersion = "https://raw.githubusercontent.com/RyanWalpoleEnterprises/Moxo-QuickWeb/main/installer/cver.txt";

//View current stable version number
WebClient client = new WebClient();
client.Proxy = null;
Stream stream = client.OpenRead(CurrentUpdateVersion);
StreamReader reader = new StreamReader(stream);
String CVER = reader.ReadToEnd();

if(CVER == Properties.Settings.Default.Version)
try
{
//Current version matches the web's most up to date version
CheckForUpdates.Text = "No updates available.";
}
else
{
CheckForUpdates.Text = "Updates available.";
DialogResult result = MessageBox.Show("Moxo QuickWeb Studio has available updates. Would you like to download and install these updates now?","Moxo QuickWeb Studio",MessageBoxButtons.YesNo,MessageBoxIcon.Question);
if(result == DialogResult.Yes)
CheckForUpdates.Text = "Checking for updates...";
string CurrentUpdateVersion = "https://raw.githubusercontent.com/RyanWalpoleEnterprises/Moxo-QuickWeb/main/installer/cver.txt";

//View current stable version number
WebClient client = new WebClient();
client.Proxy = null;
Stream stream = client.OpenRead(CurrentUpdateVersion);
StreamReader reader = new StreamReader(stream);
String CVER = reader.ReadToEnd();

if (CVER.Contains(Properties.Settings.Default.Version))
{
Update update = new Update();
update.ShowDialog();
this.Hide();
Properties.Settings.Default.UpdateReady = "FALSE";
}
else
else if (!CVER.Contains(Properties.Settings.Default.Version))
{
//
Properties.Settings.Default.UpdateReady = "TRUE";
CheckForUpdates.Text = "Updates available";
DialogResult result = MessageBox.Show("Moxo QuickWeb Studio has available updates. Would you like to download and install these updates now?", "Moxo QuickWeb Studio", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
Update update = new Update();
update.ShowDialog();
this.Hide();
}
else
{
//
}
}
}
catch
{

}
}

private void StartDotNet_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -83,5 +95,55 @@ private void StartDotLX_Click(object sender, EventArgs e)
newproject.Show();
this.Hide();
}

private void UpdateCheck_DoWork(object sender, DoWorkEventArgs e)
{
CheckForUpdates.Text = "Checking for updates...";
string CurrentUpdateVersion = "https://raw.githubusercontent.com/RyanWalpoleEnterprises/Moxo-QuickWeb/main/installer/cver.txt";

//View current stable version number
WebClient client = new WebClient();
client.Proxy = null;
Stream stream = client.OpenRead(CurrentUpdateVersion);
StreamReader reader = new StreamReader(stream);
String CVER = reader.ReadToEnd();

if (CVER.Contains(Properties.Settings.Default.Version))
{
Properties.Settings.Default.UpdateReady = "FALSE";
}
else if(!CVER.Contains(Properties.Settings.Default.Version))
{
Properties.Settings.Default.UpdateReady = "TRUE";
}
}

private void UpdateCheck_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
{
if(Properties.Settings.Default.UpdateReady == "TRUE")
{
CheckForUpdates.Text = "Updates available";
DialogResult result = MessageBox.Show("Moxo QuickWeb Studio has available updates. Would you like to download and install these updates now?", "Moxo QuickWeb Studio", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (result == DialogResult.Yes)
{
Update update = new Update();
update.ShowDialog();
this.Hide();
}
else
{
//
}
}
else if(Properties.Settings.Default.UpdateReady == "FALSE")
{
CheckForUpdates.Text = "No updates available";
}
}

private void IssueReport_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
Process.Start("https://github.com/RyanWalpoleEnterprises/Moxo-QuickWeb/issues");
}
}
}
3 changes: 3 additions & 0 deletions src/Moxo QuickWeb/Dashboard.resx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="UpdateCheck.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Expand Down
3 changes: 3 additions & 0 deletions src/Moxo QuickWeb/Moxo QuickWeb.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@
</ItemGroup>
<ItemGroup>
<Content Include="MoxoIcon.ico" />
<None Include="Resources\MoxoQWSWhiteFullLogo.png" />
<None Include="Resources\MoxoQWSColorLogo.png" />
<None Include="Resources\MoxoQWSWhiteLogo.png" />
<None Include="Resources\check-circle %28Custom%29.png" />
<None Include="Resources\check-circle.png" />
<None Include="Resources\file-cancel %28Custom%29 %281%29.png" />
Expand Down
Loading

0 comments on commit 0c26335

Please sign in to comment.