Compare commits

...
3 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
Danil Kislov 8d44365776 Фикс билда 2019-03-22 14:04:04 +03:00
7 changed files with 41 additions and 40 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ version: 1.0.{build}
image: Visual Studio 2017 image: Visual Studio 2017
init: init:
- ps: >- - ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true") if ($env:APPVEYOR_REPO_TAG -eq "true")
{ {
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME" Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
@@ -28,7 +28,7 @@ artifacts:
deploy: deploy:
- provider: GitHub - provider: GitHub
auth_token: auth_token:
secure: vcrXfbGk400wdnU45LZqhuGCdnPJsYn5lSHjguHSRm1riRDiVMC20BzvfvDIjcI/ secure: Jg8vtDMtgadXE5uifFSr5y9KNrGAjvFntqnRHzyuVWkssitctTtVq086svS2zXAq
artifact: JiraTimeBot.zip artifact: JiraTimeBot.zip
on: on:
APPVEYOR_REPO_TAG: true APPVEYOR_REPO_TAG: true
+1 -1
View File
@@ -1 +1 @@
1.0.29 1.0.32
@@ -17,10 +17,10 @@ namespace JiraTimeBot.Configuration
{ {
byte[] entropy = GetEntropy(address + username); byte[] entropy = GetEntropy(address + username);
byte[] pass = Encoding.UTF8.GetBytes(password); byte[] pass = Encoding.UTF8.GetBytes(password);
byte[] crypted = ProtectedData.Protect(pass, entropy, DataProtectionScope.LocalMachine); byte[] encrypted = ProtectedData.Protect(pass, entropy, DataProtectionScope.LocalMachine);
var cryptedBase64 = Convert.ToBase64String(crypted); var encryptedBase64 = Convert.ToBase64String(encrypted);
return cryptedBase64; return encryptedBase64;
} }
public string Decrypt(string username, string password, string address) public string Decrypt(string username, string password, string address)
@@ -32,7 +32,7 @@ namespace JiraTimeBot.Configuration
pass = ProtectedData.Unprotect(pass, entropy, DataProtectionScope.LocalMachine); pass = ProtectedData.Unprotect(pass, entropy, DataProtectionScope.LocalMachine);
return Encoding.UTF8.GetString(pass); return Encoding.UTF8.GetString(pass);
} }
catch (Exception ex) catch (Exception)
{ {
return ""; 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 // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.29")] [assembly: AssemblyVersion("1.0.32")]
[assembly: AssemblyFileVersion("1.0.29")] [assembly: AssemblyFileVersion("1.0.32")]
[assembly: AssemblyInformationalVersion("1.0.29")] [assembly: AssemblyInformationalVersion("1.0.32")]
@@ -51,7 +51,7 @@ namespace JiraTimeBot.TaskTime
Time = TimeSpan.FromMinutes(30), Time = TimeSpan.FromMinutes(30),
Branch = settings.TimeControlTask, Branch = settings.TimeControlTask,
Commits = 1, Commits = 1,
Description = "Время на учет задач", Description = "Ведение учета времени",
StartTime = DateTime.Now.Date StartTime = DateTime.Now.Date
}); });
} }
+1
View File
@@ -100,6 +100,7 @@ namespace JiraTimeBot.UI
if (System.Diagnostics.Debugger.IsAttached) if (System.Diagnostics.Debugger.IsAttached)
{ {
_log.Trace("Приложение запущено в режиме отладки. Отключаю обновление."); _log.Trace("Приложение запущено в режиме отладки. Отключаю обновление.");
//tmrUpdate.Enabled = true;
} }
else else
{ {
+1 -1
View File
@@ -69,7 +69,7 @@ namespace JiraTimeBot.Update
return reader.ReadToEnd(); return reader.ReadToEnd();
} }
} }
catch (Exception ex) catch (Exception)
{ {
return ""; return "";
} }