Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
fahminlb33 committed Mar 8, 2021
1 parent 5f1e128 commit 1502ae6
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 49 deletions.
2 changes: 1 addition & 1 deletion src/KFlearning.Control/KFlearning.Control.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Company>Kodesiana</Company>
<Product>KFlearning</Product>
<Authors>Fahmi Noor Fiqri, Kodesiana</Authors>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<RepositoryUrl>https://github.com/fahminlb33/KFlearning</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<Copyright>Copyright (C) Fahmi Noor Fiqri, Kodesiana 2020</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion src/KFlearning.Core/KFlearning.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Company>Kodesiana</Company>
<Product>KFlearning</Product>
<Authors>Fahmi Noor Fiqri, Kodesiana</Authors>
<Version>2.0.0</Version>
<Version>2.0.1</Version>
<RepositoryUrl>https://github.com/fahminlb33/KFlearning</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<Copyright>Copyright (C) Fahmi Noor Fiqri, Kodesiana 2020</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion src/KFlearning.Setup/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include Variables.wxi ?>

<Product Id="*" Name="KFlearning" Language="1033" Version="2.0.0" Manufacturer="Kodesiana"
<Product Id="*" Name="KFlearning" Language="1033" Version="2.0.1" Manufacturer="Kodesiana"
UpgradeCode="{3C1DF2CB-96CC-4249-9E74-683A8C22A388}">
<!-- Package -->
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
Expand Down
91 changes: 50 additions & 41 deletions src/KFlearning/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,51 +24,64 @@ static class Program
[STAThread]
static void Main(string[] args)
{
using (var mutex = new Mutex(true, MutexName))
try
{
if (!mutex.WaitOne(MutexTimeout))
using (var mutex = new Mutex(true, MutexName))
{
MessageBox.Show(Resources.SingleInstanceMessage, Resources.AppName,
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}
if (!mutex.WaitOne(MutexTimeout))
{
MessageBox.Show(Resources.SingleInstanceMessage, Resources.AppName,
MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
return;
}

// install services
NLog.GlobalDiagnosticsContext.Set("logDirectory", PathHelpers.GetLogPath());
Container.Install(new KFlearningModulesInstaller());
_logger = Container.Resolve<ILogger>();
// install services
NLog.GlobalDiagnosticsContext.Set("logDirectory", PathHelpers.GetLogPath());
Container.Install(new KFlearningModulesInstaller());
_logger = Container.Resolve<ILogger>();

// find vscode
var path = Container.Resolve<IPathManager>();
if (!path.IsVscodeInstalled)
{
_logger.Debug("Visual Studio Code not found");
MessageBox.Show(Resources.VscodeNotInstalled, Resources.AppName, MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
return;
}
// find vscode
var path = Container.Resolve<IPathManager>();
if (!path.IsVscodeInstalled)
{
_logger.Debug("Visual Studio Code not found");
MessageBox.Show(Resources.VscodeNotInstalled, Resources.AppName, MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
return;
}

// find mingw
if (!path.IsKfMingwInstalled)
{
_logger.Debug("KF-MinGW not found");
MessageBox.Show(Resources.KfmingwNotInstalled, Resources.AppName, MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
return;
}
// find mingw
if (!path.IsKfMingwInstalled)
{
_logger.Debug("KF-MinGW not found");
MessageBox.Show(Resources.KfmingwNotInstalled, Resources.AppName, MessageBoxButtons.OK,
MessageBoxIcon.Exclamation);
return;
}

// enable TLS
_logger.Debug("Enabling TLS support");
ApiHelpers.EnableTls();
// enable TLS
_logger.Debug("Enabling TLS support");
ApiHelpers.EnableTls();

// app exit handler
Application.ApplicationExit += Application_ApplicationExit;
// app exit handler
Application.ApplicationExit += Application_ApplicationExit;

// bootstrapper
_logger.Debug("Bootstrapping application");
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(Container.Resolve<KFlearningApplicationContext>());
// bootstrapper
_logger.Debug("Bootstrapping application");
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(Container.Resolve<KFlearningApplicationContext>());
}
}
catch (Exception e)
{
_logger.Fatal("Application shutdown unexpectedly", e);
MessageBox.Show("Aplikasi mengalami crash dan harus ditutup. Harap laporkan kepada asprak.",
Resources.AppName, MessageBoxButtons.OK, MessageBoxIcon.Error);
}
finally
{
NLog.LogManager.Shutdown();
}
}

Expand All @@ -85,10 +98,6 @@ private static void Application_ApplicationExit(object sender, EventArgs e)
{
_logger.Error("Cannot save persistence", ex);
}
finally
{
NLog.LogManager.Shutdown();
}

Container.Dispose();
}
Expand Down
4 changes: 2 additions & 2 deletions src/KFlearning/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,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("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.0.0.1")]
[assembly: AssemblyFileVersion("2.0.0.1")]
2 changes: 1 addition & 1 deletion src/KFmaintenance.Setup/Product.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<?include Variables.wxi ?>

<Product Id="*" Name="KFmaintenance" Language="1033" Version="2.0.0" Manufacturer="Kodesiana"
<Product Id="*" Name="KFmaintenance" Language="1033" Version="2.0.1" Manufacturer="Kodesiana"
UpgradeCode="c9495b6e-ef17-417d-b7a2-a789c92f346b">
<!-- Package -->
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated" />
Expand Down
4 changes: 2 additions & 2 deletions src/KFmaintenance/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,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("2.0.0.0")]
[assembly: AssemblyFileVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.0.0.1")]
[assembly: AssemblyFileVersion("2.0.0.1")]

0 comments on commit 1502ae6

Please sign in to comment.