Skip to content

Commit

Permalink
Incremented version number and updated screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Oct 5, 2018
1 parent 5b8d24a commit 00e7e84
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions src/MainForm.Designer.cs

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

10 changes: 6 additions & 4 deletions src/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
using System.Windows.Forms;
using System.Globalization;
using System.IO;
using System.Reflection;

namespace PiBootstrapper
{
Expand Down Expand Up @@ -79,10 +80,10 @@ private void ConfigureImage(string bootDrive, string networkConfig, bool enableS
if (writeConfig)
{
var regionInfo = new RegionInfo(CultureInfo.CurrentCulture.LCID);
string country = regionInfo.TwoLetterISORegionName;
string countryCode = regionInfo.TwoLetterISORegionName;

string configText = "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\n"
+ "update_config=1\ncountry=" + country + "\n\n" + networkConfig + "\n";
+ "update_config=1\ncountry=" + countryCode + "\n\n" + networkConfig + "\n";
File.WriteAllText(wpaSupplicantConf, configText);
}

Expand Down Expand Up @@ -172,10 +173,11 @@ private void formControl_Modified(object sender, EventArgs e)

private void MainForm_Load(object sender, EventArgs e)
{
UpdateDriveList();

string appVersion = Assembly.GetExecutingAssembly().GetName().Version.ToString();
versionLabel.Text += " " + appVersion.TrimEnd('.', '0');
typeComboBox.SelectedIndex = 0;

UpdateDriveList();
UpdateGuiState();
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PiBootstrapper")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyCopyright("Copyright © 2018 Timothy Johnson")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("2018.1.1")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

0 comments on commit 00e7e84

Please sign in to comment.