changed AdditionalInformationUrl to AdditionalInformation

changed AdditionalInformationUrl to AdditionalInformation for more clarity
This commit is contained in:
Stone-Red-Code
2021-04-16 21:08:56 +02:00
parent ccc5fe9651
commit b33364b338
52 changed files with 231 additions and 25 deletions
Binary file not shown.
Binary file not shown.
@@ -7,6 +7,10 @@
<StartupObject>AlwaysUpToDate_Test.Program</StartupObject>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<PackageTags></PackageTags>
<Authors>Stone_Red</Authors>
<Company>Stone_Red</Company>
<Version>1.0.0</Version>
</PropertyGroup>
<ItemGroup>
+1 -1
View File
@@ -16,7 +16,7 @@ namespace AlwaysUpToDate_Test
Console.ReadLine();
}
private static void Updater_UpdateAvailible(string version, string additionalInformationUrl)
private static void Updater_UpdateAvailible(string version, string additionalInformation)
{
Console.WriteLine("New Update avalible: " + version);
Console.WriteLine("Do you want to install the new update? (y/n)");
@@ -0,0 +1,88 @@
{
"runtimeTarget": {
"name": ".NETCoreApp,Version=v3.1",
"signature": ""
},
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v3.1": {
"AlwaysUpToDate-Test/1.0.0": {
"dependencies": {
"AlwaysUpToDate": "1.0.0.2"
},
"runtime": {
"AlwaysUpToDate-Test.dll": {}
}
},
"System.Runtime.CompilerServices.Unsafe/5.0.0": {
"runtime": {
"lib/netcoreapp2.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/netcoreapp3.0/System.Text.Encodings.Web.dll": {
"assemblyVersion": "5.0.0.1",
"fileVersion": "5.0.421.11614"
}
}
},
"System.Text.Json/5.0.2": {
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "5.0.0",
"System.Text.Encodings.Web": "5.0.1"
},
"runtime": {
"lib/netcoreapp3.0/System.Text.Json.dll": {
"assemblyVersion": "5.0.0.0",
"fileVersion": "5.0.521.16609"
}
}
},
"AlwaysUpToDate/1.0.0.2": {
"dependencies": {
"System.Text.Json": "5.0.2"
},
"runtime": {
"AlwaysUpToDate.dll": {}
}
}
}
},
"libraries": {
"AlwaysUpToDate-Test/1.0.0": {
"type": "project",
"serviceable": false,
"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"
},
"AlwaysUpToDate/1.0.0.2": {
"type": "project",
"serviceable": false,
"sha512": ""
}
}
}
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\David\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\David\\.nuget\\packages",
"C:\\Microsoft\\Xamarin\\NuGet"
]
}
}
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "3.1.0"
}
}
}
@@ -57,6 +57,12 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.NETCore.App.Host.win-x64",
"version": "[3.1.13, 3.1.13]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
@@ -67,7 +73,7 @@
}
},
"C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj": {
"version": "1.0.0.1",
"version": "1.0.0.2",
"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=v5.0", 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
@@ -0,0 +1,8 @@
is_global = true
build_property.TargetFramework = net5.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.PublishSingleFile =
build_property.IncludeAllContentForSelfExtract =
build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows
@@ -11,7 +11,7 @@
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("AlwaysUpToDate-Test")]
[assembly: System.Reflection.AssemblyCompanyAttribute("Stone_Red")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
@@ -1 +1 @@
03435e23bfe68f55cfdfd8966ae1a5c6a1a09749
220ae1cf5717286e9ea071dc72640aea7aaa7ede
@@ -0,0 +1 @@
9a416e09859dcfdf29e5ed1949a40b952ad4dbac
@@ -0,0 +1,19 @@
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate-Test.exe
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate-Test.deps.json
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate-Test.runtimeconfig.json
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate-Test.runtimeconfig.dev.json
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate-Test.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate-Test.pdb
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\System.Runtime.CompilerServices.Unsafe.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\System.Text.Encodings.Web.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\System.Text.Json.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\bin\Release\netcoreapp3.1\AlwaysUpToDate.pdb
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.csprojAssemblyReference.cache
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.AssemblyInfoInputs.cache
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.AssemblyInfo.cs
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.csproj.CoreCompileInputs.cache
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.csproj.CopyComplete
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.dll
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.pdb
C:\Users\David\Google Drive\Programmieren\AlwaysUpToDate\AlwaysUpToDate-Test\obj\Release\netcoreapp3.1\AlwaysUpToDate-Test.genruntimeconfig.cache
@@ -0,0 +1 @@
7ade1a36d24e23079f6f5ebd635dfdf108bda606
+9 -3
View File
@@ -33,7 +33,7 @@
"lib/netcoreapp3.0/System.Text.Json.dll": {}
}
},
"AlwaysUpToDate/1.0.0.1": {
"AlwaysUpToDate/1.0.0.2": {
"type": "project",
"framework": ".NETStandard,Version=v2.1",
"dependencies": {
@@ -129,7 +129,7 @@
"version.txt"
]
},
"AlwaysUpToDate/1.0.0.1": {
"AlwaysUpToDate/1.0.0.2": {
"type": "project",
"path": "../AlwaysUpToDate/AlwaysUpToDate.csproj",
"msbuildProject": "../AlwaysUpToDate/AlwaysUpToDate.csproj"
@@ -137,7 +137,7 @@
},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [
"AlwaysUpToDate >= 1.0.0.1"
"AlwaysUpToDate >= 1.0.0.2"
]
},
"packageFolders": {
@@ -197,6 +197,12 @@
],
"assetTargetFallback": true,
"warn": true,
"downloadDependencies": [
{
"name": "Microsoft.NETCore.App.Host.win-x64",
"version": "[3.1.13, 3.1.13]"
}
],
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
+3 -2
View File
@@ -1,12 +1,13 @@
{
"version": 2,
"dgSpecHash": "506ndkqhm5JO5QR0x89vPMyoFm6V5o1S159brOIO3YCZfz9Roy0LNL2x144TkHJQz6OiZJiDpBGYPsRWF4FDqw==",
"dgSpecHash": "h7cYyI/TV+CCEcTRZE632SBkNMDHVVkhARybMWUxxfebher2R2CBkRSQ+lToUnAxoLUV2REfEELT2Cq4ohNLhw==",
"success": true,
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate-Test\\AlwaysUpToDate-Test.csproj",
"expectedPackageFiles": [
"C:\\Users\\David\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\5.0.0\\system.runtime.compilerservices.unsafe.5.0.0.nupkg.sha512",
"C:\\Users\\David\\.nuget\\packages\\system.text.encodings.web\\5.0.1\\system.text.encodings.web.5.0.1.nupkg.sha512",
"C:\\Users\\David\\.nuget\\packages\\system.text.json\\5.0.2\\system.text.json.5.0.2.nupkg.sha512"
"C:\\Users\\David\\.nuget\\packages\\system.text.json\\5.0.2\\system.text.json.5.0.2.nupkg.sha512",
"C:\\Users\\David\\.nuget\\packages\\microsoft.netcore.app.host.win-x64\\3.1.13\\microsoft.netcore.app.host.win-x64.3.1.13.nupkg.sha512"
],
"logs": []
}
+4 -3
View File
@@ -5,14 +5,15 @@
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<Version>1.0.0.1</Version>
<Version>1.0.0.2</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>
<AssemblyVersion>1.0.0.2</AssemblyVersion>
<FileVersion>1.0.0.2</FileVersion>
<PackageTags>Updater, AutoUpdate, Auto, C#</PackageTags>
</PropertyGroup>
<ItemGroup>
+2 -2
View File
@@ -16,7 +16,7 @@ namespace AlwaysUpToDate
public event UpdaterChangedHandler ProgressChanged;
public delegate void UpdateAvalibleHandler(string version, string additionalInformationUrl);
public delegate void UpdateAvalibleHandler(string version, string additionalInformation);
public event UpdateAvalibleHandler UpdateAvailible;
@@ -75,7 +75,7 @@ namespace AlwaysUpToDate
updateUrl = updateInfo.FileUrl;
if (!updateInfo.Mandatory)
{
UpdateAvailible(updateInfo.Version, updateInfo.AdditionalInformationUrl);
UpdateAvailible(updateInfo.Version, updateInfo.AdditionalInformation);
}
else
{
+1 -1
View File
@@ -8,7 +8,7 @@ namespace AlwaysUpToDate
{
public string Version { get; set; }
public string FileUrl { get; set; }
public string AdditionalInformationUrl { get; set; }
public string AdditionalInformation { get; set; }
public bool Mandatory { get; set; }
}
}
@@ -7,7 +7,7 @@
"targets": {
".NETStandard,Version=v2.1": {},
".NETStandard,Version=v2.1/": {
"AlwaysUpToDate/1.0.0.1": {
"AlwaysUpToDate/1.0.0.2": {
"dependencies": {
"System.Text.Json": "5.0.2"
},
@@ -99,7 +99,7 @@
}
},
"libraries": {
"AlwaysUpToDate/1.0.0.1": {
"AlwaysUpToDate/1.0.0.2": {
"type": "project",
"serviceable": false,
"sha512": ""
@@ -5,7 +5,7 @@
},
"projects": {
"C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj": {
"version": "1.0.0.1",
"version": "1.0.0.2",
"restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"projectName": "AlwaysUpToDate",
@@ -0,0 +1,23 @@
<?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.2</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>
<tags>Updater, AutoUpdate, Auto, C#</tags>
<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>
@@ -14,11 +14,11 @@ 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.AssemblyFileVersionAttribute("1.0.0.2")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0.2")]
[assembly: System.Reflection.AssemblyProductAttribute("AlwaysUpToDate")]
[assembly: System.Reflection.AssemblyTitleAttribute("AlwaysUpToDate")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.2")]
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/Stone-Red-Code/AlwaysUpToDate")]
[assembly: System.Resources.NeutralResourcesLanguageAttribute("en")]
@@ -1 +1 @@
e387a4561471e22ff1970e8dffe2d7bf53682f96
ba7d291dd820afb22b3a6e5f1fd3d28d7f1f7d86
+1 -1
View File
@@ -345,7 +345,7 @@
"C:\\Microsoft\\Xamarin\\NuGet\\": {}
},
"project": {
"version": "1.0.0.1",
"version": "1.0.0.2",
"restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"projectName": "AlwaysUpToDate",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "TrD2D1rCbz+MUCIDbCNi4OqgxK1+sPk5ONDf0agZetjulJcOokMvAN3zaHdsf/qmVDSuF+o+MTq0Z5i9E4Y6nQ==",
"dgSpecHash": "EfO7BdBy0M5BGjxlXu9Bm76B4MRwztbAUclTQyri0UOkGzQ9A0Htx2W1EWWHTFC1wciXhFiSGlagOYtltB8nLQ==",
"success": true,
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\AlwaysUpToDate\\AlwaysUpToDate\\AlwaysUpToDate.csproj",
"expectedPackageFiles": [
+3 -1
View File
@@ -27,11 +27,13 @@ While extracting the zip file all the files that have the same name/path as in t
- Version (Required): The version should have this format `X.X.X.X`
- FileUrl (Required): Url to the newest installer version zip file
- Mandatory (Optional): Should be either true or false. The default is false
- AdditionalInformation (Optional): Can be anything. This will get passed as a parameter of the `UpdateAvailible` event.
```json
{
"Version":"version",
"FileUrl":"url",
"Mandatory":false
"Mandatory":false,
"AdditionalInformation":"information",
}
```