Updated LICENCE and added nupkg

This commit is contained in:
Stone-Red-Code
2021-04-16 12:25:25 +02:00
parent 86324a7cd7
commit 38400cb3cd
32 changed files with 299 additions and 22 deletions
+13 -8
View File
@@ -5,24 +5,29 @@ namespace AlwaysUpToDate_Test
{
internal class Program
{
static private Updater downloader = new Updater(new TimeSpan(0, 0, 1), "https://raw.githubusercontent.com/Stone-Red-Code/Test/main/test.json", "./", false);
static private Updater updater = new Updater(new TimeSpan(0, 0, 1), "https://raw.githubusercontent.com/Stone-Red-Code/Test/main/test.json", "./", false);
private static void Main(string[] args)
{
downloader.Start();
downloader.ProgressChanged += Downloader_ProgressChanged;
downloader.UpdateAvailible += Downloader_UpdateAvailible;
updater.Start();
updater.ProgressChanged += Updater_ProgressChanged;
updater.UpdateAvailible += Updater_UpdateAvailible;
Console.ReadLine();
}
private static void Downloader_UpdateAvailible(string version, string additionalInformationUrl)
private static void Updater_UpdateAvailible(string version, string additionalInformationUrl)
{
Console.WriteLine("New Update: " + version);
downloader.Update();
Console.WriteLine("New Update avalible: " + version);
Console.WriteLine("Do you want to install the new update? (y/n)");
char input = Console.ReadKey().KeyChar;
if (char.ToLower(input) == 'y')
updater.Update();
}
private static void Downloader_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
private static void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
{
Console.WriteLine($"{totalBytesDownloaded}/{totalFileSize} {progressPercentage}%");
}
@@ -67,7 +67,7 @@
}
},
"C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj": {
"version": "1.0.0",
"version": "1.0.0.1",
"restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"projectName": "AlwaysUpToDate",
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AlwaysUpToDate-Test")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("AlwaysUpToDate-Test")]
[assembly: System.Reflection.AssemblyTitleAttribute("AlwaysUpToDate-Test")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -0,0 +1 @@
03435e23bfe68f55cfdfd8966ae1a5c6a1a09749
+3 -3
View File
@@ -33,7 +33,7 @@
"lib/netcoreapp3.0/System.Text.Json.dll": {}
}
},
"AlwaysUpToDate/1.0.0": {
"AlwaysUpToDate/1.0.0.1": {
"type": "project",
"framework": ".NETStandard,Version=v2.1",
"dependencies": {
@@ -129,7 +129,7 @@
"version.txt"
]
},
"AlwaysUpToDate/1.0.0": {
"AlwaysUpToDate/1.0.0.1": {
"type": "project",
"path": "../AlwaysUpToDate/AlwaysUpToDate.csproj",
"msbuildProject": "../AlwaysUpToDate/AlwaysUpToDate.csproj"
@@ -137,7 +137,7 @@
},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [
"AlwaysUpToDate >= 1.0.0"
"AlwaysUpToDate >= 1.0.0.1"
]
},
"packageFolders": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "YqwqH9xiWa+JEMoKEVk5YUIYIEsq0IbV8y7N2zNzhr8CN7f1D0hmGdph5hTus1IgKonnuio0KI/wN37wF1glVQ==",
"dgSpecHash": "506ndkqhm5JO5QR0x89vPMyoFm6V5o1S159brOIO3YCZfz9Roy0LNL2x144TkHJQz6OiZJiDpBGYPsRWF4FDqw==",
"success": true,
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate-Test\\AlwaysUpToDate-Test.csproj",
"expectedPackageFiles": [