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
Binary file not shown.
+13 -8
View File
@@ -5,24 +5,29 @@ namespace AlwaysUpToDate_Test
{ {
internal class Program 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) private static void Main(string[] args)
{ {
downloader.Start(); updater.Start();
downloader.ProgressChanged += Downloader_ProgressChanged; updater.ProgressChanged += Updater_ProgressChanged;
downloader.UpdateAvailible += Downloader_UpdateAvailible; updater.UpdateAvailible += Updater_UpdateAvailible;
Console.ReadLine(); 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); Console.WriteLine("New Update avalible: " + version);
downloader.Update(); 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}%"); Console.WriteLine($"{totalBytesDownloaded}/{totalFileSize} {progressPercentage}%");
} }
@@ -67,7 +67,7 @@
} }
}, },
"C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj": { "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj": {
"version": "1.0.0", "version": "1.0.0.1",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj", "projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"projectName": "AlwaysUpToDate", "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": {} "lib/netcoreapp3.0/System.Text.Json.dll": {}
} }
}, },
"AlwaysUpToDate/1.0.0": { "AlwaysUpToDate/1.0.0.1": {
"type": "project", "type": "project",
"framework": ".NETStandard,Version=v2.1", "framework": ".NETStandard,Version=v2.1",
"dependencies": { "dependencies": {
@@ -129,7 +129,7 @@
"version.txt" "version.txt"
] ]
}, },
"AlwaysUpToDate/1.0.0": { "AlwaysUpToDate/1.0.0.1": {
"type": "project", "type": "project",
"path": "../AlwaysUpToDate/AlwaysUpToDate.csproj", "path": "../AlwaysUpToDate/AlwaysUpToDate.csproj",
"msbuildProject": "../AlwaysUpToDate/AlwaysUpToDate.csproj" "msbuildProject": "../AlwaysUpToDate/AlwaysUpToDate.csproj"
@@ -137,7 +137,7 @@
}, },
"projectFileDependencyGroups": { "projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [ ".NETCoreApp,Version=v3.1": [
"AlwaysUpToDate >= 1.0.0" "AlwaysUpToDate >= 1.0.0.1"
] ]
}, },
"packageFolders": { "packageFolders": {
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"version": 2, "version": 2,
"dgSpecHash": "YqwqH9xiWa+JEMoKEVk5YUIYIEsq0IbV8y7N2zNzhr8CN7f1D0hmGdph5hTus1IgKonnuio0KI/wN37wF1glVQ==", "dgSpecHash": "506ndkqhm5JO5QR0x89vPMyoFm6V5o1S159brOIO3YCZfz9Roy0LNL2x144TkHJQz6OiZJiDpBGYPsRWF4FDqw==",
"success": true, "success": true,
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate-Test\\AlwaysUpToDate-Test.csproj", "projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate-Test\\AlwaysUpToDate-Test.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [
+18 -1
View File
@@ -2,11 +2,28 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework> <TargetFramework>netstandard2.1</TargetFramework>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild> <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>1.0.0.1</Version>
<RepositoryUrl>https://github.com/Stone-Red-Code/AlwaysUpToDate</RepositoryUrl>
<Description>A simple .NET auto updater</Description>
<NeutralLanguage>en</NeutralLanguage>
<Company>Stone_Red</Company>
<Authors>Stone_Red</Authors>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="System.Text.Json" Version="5.0.2" /> <PackageReference Include="System.Text.Json" Version="5.0.2" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project> </Project>
@@ -0,0 +1,164 @@
{
"runtimeTarget": {
"name": ".NETStandard,Version=v2.1/",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETStandard,Version=v2.1": {},
".NETStandard,Version=v2.1/": {
"AlwaysUpToDate/1.0.0.1": {
"dependencies": {
"System.Text.Json": "5.0.2"
},
"runtime": {
"AlwaysUpToDate.dll": {}
}
},
"Microsoft.Bcl.AsyncInterfaces/5.0.0": {
"runtime": {
"lib/netstandard2.1/Microsoft.Bcl.AsyncInterfaces.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.0.20.51904"
}
}
},
"System.Buffers/4.5.1": {
"runtime": {
"lib/netstandard2.0/System.Buffers.dll": {
"assemblyVersion": "4.0.3.0",
"fileVersion": "4.6.28619.1"
}
}
},
"System.Memory/4.5.4": {
"dependencies": {
"System.Buffers": "4.5.1",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0"
},
"runtime": {
"lib/netstandard2.0/System.Memory.dll": {
"assemblyVersion": "4.0.1.1",
"fileVersion": "4.6.28619.1"
}
}
},
"System.Numerics.Vectors/4.5.0": {
"runtime": {
"lib/netstandard2.0/System.Numerics.Vectors.dll": {
"assemblyVersion": "4.1.4.0",
"fileVersion": "4.6.26515.6"
}
}
},
"System.Runtime.CompilerServices.Unsafe/5.0.0": {
"runtime": {
"lib/netstandard2.0/System.Runtime.CompilerServices.Unsafe.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.0.20.51904"
}
}
},
"System.Text.Encodings.Web/5.0.1": {
"runtime": {
"lib/netstandard2.1/System.Text.Encodings.Web.dll": {
"assemblyVersion": "5.0.0.1",
"fileVersion": "5.0.421.11614"
}
}
},
"System.Text.Json/5.0.2": {
"dependencies": {
"Microsoft.Bcl.AsyncInterfaces": "5.0.0",
"System.Buffers": "4.5.1",
"System.Memory": "4.5.4",
"System.Numerics.Vectors": "4.5.0",
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1",
"System.Threading.Tasks.Extensions": "4.5.4"
},
"runtime": {
"lib/netstandard2.0/System.Text.Json.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.0.521.16609"
}
}
},
"System.Threading.Tasks.Extensions/4.5.4": {
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "5.0.0"
},
"runtime": {
"lib/netstandard2.0/System.Threading.Tasks.Extensions.dll": {
"assemblyVersion": "4.2.0.1",
"fileVersion": "4.6.28619.1"
}
}
}
}
},
"libraries": {
"AlwaysUpToDate/1.0.0.1": {
"type": "project",
"serviceable": false,
"sha512": ""
},
"Microsoft.Bcl.AsyncInterfaces/5.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-W8DPQjkMScOMTtJbPwmPyj9c3zYSFGawDW3jwlBOOsnY+EzZFLgNQ/UMkK35JmkNOVPdCyPr2Tw7Vv9N+KA3ZQ==",
"path": "microsoft.bcl.asyncinterfaces/5.0.0",
"hashPath": "microsoft.bcl.asyncinterfaces.5.0.0.nupkg.sha512"
},
"System.Buffers/4.5.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==",
"path": "system.buffers/4.5.1",
"hashPath": "system.buffers.4.5.1.nupkg.sha512"
},
"System.Memory/4.5.4": {
"type": "package",
"serviceable": true,
"sha512": "sha512-1MbJTHS1lZ4bS4FmsJjnuGJOu88ZzTT2rLvrhW7Ygic+pC0NWA+3hgAen0HRdsocuQXCkUTdFn9yHJJhsijDXw==",
"path": "system.memory/4.5.4",
"hashPath": "system.memory.4.5.4.nupkg.sha512"
},
"System.Numerics.Vectors/4.5.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-QQTlPTl06J/iiDbJCiepZ4H//BVraReU4O4EoRw1U02H5TLUIT7xn3GnDp9AXPSlJUDyFs4uWjWafNX6WrAojQ==",
"path": "system.numerics.vectors/4.5.0",
"hashPath": "system.numerics.vectors.4.5.0.nupkg.sha512"
},
"System.Runtime.CompilerServices.Unsafe/5.0.0": {
"type": "package",
"serviceable": true,
"sha512": "sha512-ZD9TMpsmYJLrxbbmdvhwt9YEgG5WntEnZ/d1eH8JBX9LBp+Ju8BSBhUGbZMNVHHomWo2KVImJhTDl2hIgw/6MA==",
"path": "system.runtime.compilerservices.unsafe/5.0.0",
"hashPath": "system.runtime.compilerservices.unsafe.5.0.0.nupkg.sha512"
},
"System.Text.Encodings.Web/5.0.1": {
"type": "package",
"serviceable": true,
"sha512": "sha512-KmJ+CJXizDofbq6mpqDoRRLcxgOd2z9X3XoFNULSbvbqVRZkFX3istvr+MUjL6Zw1RT+RNdoI4GYidIINtgvqQ==",
"path": "system.text.encodings.web/5.0.1",
"hashPath": "system.text.encodings.web.5.0.1.nupkg.sha512"
},
"System.Text.Json/5.0.2": {
"type": "package",
"serviceable": true,
"sha512": "sha512-I47dVIGiV6SfAyppphxqupertT/5oZkYLDCX6vC3HpOI4ZLjyoKAreUoem2ie6G0RbRuFrlqz/PcTQjfb2DOfQ==",
"path": "system.text.json/5.0.2",
"hashPath": "system.text.json.5.0.2.nupkg.sha512"
},
"System.Threading.Tasks.Extensions/4.5.4": {
"type": "package",
"serviceable": true,
"sha512": "sha512-zteT+G8xuGu6mS+mzDzYXbzS7rd3K6Fjb9RiZlYlJPam2/hU7JCBZBVEcywNuR+oZ1ncTvc/cq0faRr3P01OVg==",
"path": "system.threading.tasks.extensions/4.5.4",
"hashPath": "system.threading.tasks.extensions.4.5.4.nupkg.sha512"
}
}
}
@@ -5,7 +5,7 @@
}, },
"projects": { "projects": {
"C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj": { "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj": {
"version": "1.0.0", "version": "1.0.0.1",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj", "projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"projectName": "AlwaysUpToDate", "projectName": "AlwaysUpToDate",
@@ -13,11 +13,11 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AlwaysUpToDate")] [assembly: System.Reflection.AssemblyCompanyAttribute("AlwaysUpToDate")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.0.1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.0.1")]
[assembly: System.Reflection.AssemblyProductAttribute("AlwaysUpToDate")] [assembly: System.Reflection.AssemblyProductAttribute("AlwaysUpToDate")]
[assembly: System.Reflection.AssemblyTitleAttribute("AlwaysUpToDate")] [assembly: System.Reflection.AssemblyTitleAttribute("AlwaysUpToDate")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("0.0.0.1")]
// Von der MSBuild WriteCodeFragment-Klasse generiert. // Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -1 +1 @@
fca546e13ae48443440731c5bf2ea827ef8de0bb 729eef2dbbdce6380998e0e78ee670cb0f175576
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>AlwaysUpToDate</id>
<version>1.0.0.1</version>
<authors>Stone_Red</authors>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<license type="file">LICENSE</license>
<licenseUrl>https://aka.ms/deprecateLicenseUrl</licenseUrl>
<description>A simple .NET auto updater</description>
<repository url="https://github.com/Stone-Red-Code/AlwaysUpToDate" />
<dependencies>
<group targetFramework=".NETStandard2.1">
<dependency id="System.Text.Json" version="5.0.2" exclude="Build,Analyzers" />
</group>
</dependencies>
</metadata>
<files>
<file src="C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\bin\Release\netstandard2.1\AlwaysUpToDate.dll" target="lib\netstandard2.1\AlwaysUpToDate.dll" />
<file src="C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\LICENSE" target="LICENSE" />
</files>
</package>
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETStandard,Version=v2.1", FrameworkDisplayName = "")]
@@ -0,0 +1,26 @@
//------------------------------------------------------------------------------
// <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("Stone_Red")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyDescriptionAttribute("A simple .NET auto updater")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.1")]
[assembly: System.Reflection.AssemblyProductAttribute("AlwaysUpToDate")]
[assembly: System.Reflection.AssemblyTitleAttribute("AlwaysUpToDate")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Stone-Red-Code/AlwaysUpToDate")]
[assembly: System.Resources.NeutralResourcesLanguageAttribute("en")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -0,0 +1 @@
e387a4561471e22ff1970e8dffe2d7bf53682f96
@@ -0,0 +1 @@
e5e596d7bfb3c1485529abad81b8705d5e2a4c67
@@ -0,0 +1,9 @@
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\bin\Release\netstandard2.1\AlwaysUpToDate.deps.json
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\bin\Release\netstandard2.1\AlwaysUpToDate.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\bin\Release\netstandard2.1\AlwaysUpToDate.pdb
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\obj\Release\netstandard2.1\AlwaysUpToDate.AssemblyInfoInputs.cache
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\obj\Release\netstandard2.1\AlwaysUpToDate.AssemblyInfo.cs
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\obj\Release\netstandard2.1\AlwaysUpToDate.csproj.CoreCompileInputs.cache
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\obj\Release\netstandard2.1\AlwaysUpToDate.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\obj\Release\netstandard2.1\AlwaysUpToDate.pdb
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate\obj\Release\netstandard2.1\AlwaysUpToDate.csprojAssemblyReference.cache
+1 -1
View File
@@ -345,7 +345,7 @@
"C:\\Microsoft\\Xamarin\\NuGet\\": {} "C:\\Microsoft\\Xamarin\\NuGet\\": {}
}, },
"project": { "project": {
"version": "1.0.0", "version": "1.0.0.1",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj", "projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"projectName": "AlwaysUpToDate", "projectName": "AlwaysUpToDate",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"version": 2, "version": 2,
"dgSpecHash": "N198DVJ70n2DoHwW5yiOfXF0hnmA/6XRg421LAQuyOGssGyFLBFZj30TwVxN4vOlOTprArwjXQZHBJqzum5Z/g==", "dgSpecHash": "TrD2D1rCbz+MUCIDbCNi4OqgxK1+sPk5ONDf0agZetjulJcOokMvAN3zaHdsf/qmVDSuF+o+MTq0Z5i9E4Y6nQ==",
"success": true, "success": true,
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj", "projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2021 Stone-Red-Code Copyright (c) 2021 Stone_Red
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal