Compare commits

...
2 Commits
Author SHA1 Message Date
Danil Kislov b74b411e78 Мелкие исправления 2019-03-22 14:59:47 +03:00
Danil Kislov deca5cf7f2 Фикс билда2 2019-03-22 14:22:29 +03:00
7 changed files with 40 additions and 39 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ artifacts:
deploy:
- provider: GitHub
auth_token:
secure: vcrXfbGk400wdnU45LZqhuGCdnPJsYn5lSHjguHSRm1riRDiVMC20BzvfvDIjcI/
secure: Jg8vtDMtgadXE5uifFSr5y9KNrGAjvFntqnRHzyuVWkssitctTtVq086svS2zXAq
artifact: JiraTimeBot.zip
on:
APPVEYOR_REPO_TAG: true
+1 -1
View File
@@ -1 +1 @@
1.0.30
1.0.32
@@ -17,10 +17,10 @@ namespace JiraTimeBot.Configuration
{
byte[] entropy = GetEntropy(address + username);
byte[] pass = Encoding.UTF8.GetBytes(password);
byte[] crypted = ProtectedData.Protect(pass, entropy, DataProtectionScope.LocalMachine);
var cryptedBase64 = Convert.ToBase64String(crypted);
byte[] encrypted = ProtectedData.Protect(pass, entropy, DataProtectionScope.LocalMachine);
var encryptedBase64 = Convert.ToBase64String(encrypted);
return cryptedBase64;
return encryptedBase64;
}
public string Decrypt(string username, string password, string address)
@@ -32,7 +32,7 @@ namespace JiraTimeBot.Configuration
pass = ProtectedData.Unprotect(pass, entropy, DataProtectionScope.LocalMachine);
return Encoding.UTF8.GetString(pass);
}
catch (Exception ex)
catch (Exception)
{
return "";
}
+3 -3
View File
@@ -26,6 +26,6 @@ using System.Runtime.InteropServices;
//
// 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.30")]
[assembly: AssemblyFileVersion("1.0.30")]
[assembly: AssemblyInformationalVersion("1.0.30")]
[assembly: AssemblyVersion("1.0.32")]
[assembly: AssemblyFileVersion("1.0.32")]
[assembly: AssemblyInformationalVersion("1.0.32")]
@@ -51,7 +51,7 @@ namespace JiraTimeBot.TaskTime
Time = TimeSpan.FromMinutes(30),
Branch = settings.TimeControlTask,
Commits = 1,
Description = "Время на учет задач",
Description = "Ведение учета времени",
StartTime = DateTime.Now.Date
});
}
+1
View File
@@ -100,6 +100,7 @@ namespace JiraTimeBot.UI
if (System.Diagnostics.Debugger.IsAttached)
{
_log.Trace("Приложение запущено в режиме отладки. Отключаю обновление.");
//tmrUpdate.Enabled = true;
}
else
{
+1 -1
View File
@@ -69,7 +69,7 @@ namespace JiraTimeBot.Update
return reader.ReadToEnd();
}
}
catch (Exception ex)
catch (Exception)
{
return "";
}