mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-19 00:51:30 -07:00
Add new icon
This commit is contained in:
parent
0a2382d590
commit
246ae947b5
@ -32,6 +32,7 @@ namespace Bloxstrap.Dialogs
|
||||
{ "Late 2015", BootstrapperIcon.IconLate2015 },
|
||||
{ "2017", BootstrapperIcon.Icon2017 },
|
||||
{ "2019", BootstrapperIcon.Icon2019 },
|
||||
{ "2022", BootstrapperIcon.Icon2022 }
|
||||
};
|
||||
|
||||
private string ChannelInfo
|
||||
|
@ -8,6 +8,7 @@
|
||||
IconEarly2015,
|
||||
IconLate2015,
|
||||
Icon2017,
|
||||
Icon2019
|
||||
Icon2019,
|
||||
Icon2022
|
||||
}
|
||||
}
|
||||
|
@ -99,13 +99,11 @@ namespace Bloxstrap.Helpers
|
||||
public static async Task<VersionDeploy> GetLastDeploy(string channel)
|
||||
{
|
||||
string baseUrl = BuildBaseUrl(channel);
|
||||
string deployHistory = "";
|
||||
string lastDeploy = "";
|
||||
|
||||
using (HttpClient client = new())
|
||||
{
|
||||
deployHistory = await client.GetStringAsync($"{baseUrl}/DeployHistory.txt");
|
||||
}
|
||||
string deployHistory = await client.GetStringAsync($"{baseUrl}/DeployHistory.txt");
|
||||
|
||||
using (StringReader reader = new(deployHistory))
|
||||
{
|
||||
@ -117,6 +115,7 @@ namespace Bloxstrap.Helpers
|
||||
lastDeploy = line;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (String.IsNullOrEmpty(lastDeploy))
|
||||
throw new Exception($"Could not get latest deploy for channel {channel}");
|
||||
@ -148,7 +147,12 @@ namespace Bloxstrap.Helpers
|
||||
// convert to traditional version format
|
||||
fileVersion = fileVersion.Replace(" ", "").Replace(',', '.');
|
||||
|
||||
return new VersionDeploy { VersionGuid = versionGuid, Date = date, FileVersion = fileVersion };
|
||||
return new VersionDeploy
|
||||
{
|
||||
VersionGuid = versionGuid,
|
||||
Date = date,
|
||||
FileVersion = fileVersion
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ namespace Bloxstrap.Helpers
|
||||
case BootstrapperIcon.IconLate2015: return Properties.Resources.IconLate2015_ico;
|
||||
case BootstrapperIcon.Icon2017: return Properties.Resources.Icon2017_ico;
|
||||
case BootstrapperIcon.Icon2019: return Properties.Resources.Icon2019_ico;
|
||||
case BootstrapperIcon.Icon2022: return Properties.Resources.Icon2022_ico;
|
||||
case BootstrapperIcon.IconBloxstrap: default: return Properties.Resources.IconBloxstrap_ico;
|
||||
}
|
||||
}
|
||||
@ -38,6 +39,7 @@ namespace Bloxstrap.Helpers
|
||||
case BootstrapperIcon.IconLate2015: return Properties.Resources.IconLate2015_png;
|
||||
case BootstrapperIcon.Icon2017: return Properties.Resources.Icon2017_png;
|
||||
case BootstrapperIcon.Icon2019: return Properties.Resources.Icon2019_png;
|
||||
case BootstrapperIcon.Icon2022: return Properties.Resources.Icon2022_png;
|
||||
case BootstrapperIcon.IconBloxstrap: default: return Properties.Resources.IconBloxstrap_png;
|
||||
}
|
||||
}
|
||||
|
20
Bloxstrap/Properties/Resources.Designer.cs
generated
20
Bloxstrap/Properties/Resources.Designer.cs
generated
@ -180,6 +180,26 @@ namespace Bloxstrap.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||
/// </summary>
|
||||
internal static System.Drawing.Icon Icon2022_ico {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Icon2022_ico", resourceCulture);
|
||||
return ((System.Drawing.Icon)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Icon2022_png {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Icon2022_png", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
|
||||
/// </summary>
|
||||
|
@ -154,6 +154,12 @@
|
||||
<data name="Icon2019_png" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Icon2019-png.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Icon2022_ico" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Icon2022-ico.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Icon2022_png" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Icon2022-png.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="IconBloxstrap_ico" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\IconBloxstrap-ico.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
BIN
Bloxstrap/Resources/Icon2022-ico.ico
Normal file
BIN
Bloxstrap/Resources/Icon2022-ico.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
BIN
Bloxstrap/Resources/Icon2022-png.png
Normal file
BIN
Bloxstrap/Resources/Icon2022-png.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
Loading…
Reference in New Issue
Block a user