First commit
This commit is contained in:
		
							parent
							
								
									9df68bf0da
								
							
						
					
					
						commit
						4a1ca8f2f3
					
				
							
								
								
									
										25
									
								
								PoE-MxFilterGen-Updater.sln
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								PoE-MxFilterGen-Updater.sln
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,25 @@ | ||||
|  | ||||
| Microsoft Visual Studio Solution File, Format Version 12.00 | ||||
| # Visual Studio Version 16 | ||||
| VisualStudioVersion = 16.0.30225.117 | ||||
| MinimumVisualStudioVersion = 10.0.40219.1 | ||||
| Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PoE-MxFilterGen-Updater", "PoE-MxFilterGen-Updater\PoE-MxFilterGen-Updater.csproj", "{F875FF57-77C4-4643-958F-C593D906FA39}" | ||||
| EndProject | ||||
| Global | ||||
| 	GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||||
| 		Debug|Any CPU = Debug|Any CPU | ||||
| 		Release|Any CPU = Release|Any CPU | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||||
| 		{F875FF57-77C4-4643-958F-C593D906FA39}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||||
| 		{F875FF57-77C4-4643-958F-C593D906FA39}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||||
| 		{F875FF57-77C4-4643-958F-C593D906FA39}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||||
| 		{F875FF57-77C4-4643-958F-C593D906FA39}.Release|Any CPU.Build.0 = Release|Any CPU | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(SolutionProperties) = preSolution | ||||
| 		HideSolutionNode = FALSE | ||||
| 	EndGlobalSection | ||||
| 	GlobalSection(ExtensibilityGlobals) = postSolution | ||||
| 		SolutionGuid = {CB96D21F-E6CC-43F5-BC82-80B8AA6C5473} | ||||
| 	EndGlobalSection | ||||
| EndGlobal | ||||
							
								
								
									
										6
									
								
								PoE-MxFilterGen-Updater/App.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								PoE-MxFilterGen-Updater/App.config
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="utf-8" ?> | ||||
| <configuration> | ||||
|     <startup>  | ||||
|         <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" /> | ||||
|     </startup> | ||||
| </configuration> | ||||
							
								
								
									
										3
									
								
								PoE-MxFilterGen-Updater/FodyWeavers.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								PoE-MxFilterGen-Updater/FodyWeavers.xml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> | ||||
|   <Costura /> | ||||
| </Weavers> | ||||
							
								
								
									
										111
									
								
								PoE-MxFilterGen-Updater/FodyWeavers.xsd
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										111
									
								
								PoE-MxFilterGen-Updater/FodyWeavers.xsd
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,111 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||||
|   <!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> | ||||
|   <xs:element name="Weavers"> | ||||
|     <xs:complexType> | ||||
|       <xs:all> | ||||
|         <xs:element name="Costura" minOccurs="0" maxOccurs="1"> | ||||
|           <xs:complexType> | ||||
|             <xs:all> | ||||
|               <xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string"> | ||||
|                 <xs:annotation> | ||||
|                   <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation> | ||||
|                 </xs:annotation> | ||||
|               </xs:element> | ||||
|               <xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string"> | ||||
|                 <xs:annotation> | ||||
|                   <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation> | ||||
|                 </xs:annotation> | ||||
|               </xs:element> | ||||
|               <xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string"> | ||||
|                 <xs:annotation> | ||||
|                   <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation> | ||||
|                 </xs:annotation> | ||||
|               </xs:element> | ||||
|               <xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string"> | ||||
|                 <xs:annotation> | ||||
|                   <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation> | ||||
|                 </xs:annotation> | ||||
|               </xs:element> | ||||
|               <xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string"> | ||||
|                 <xs:annotation> | ||||
|                   <xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation> | ||||
|                 </xs:annotation> | ||||
|               </xs:element> | ||||
|             </xs:all> | ||||
|             <xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="IncludeDebugSymbols" type="xs:boolean"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="DisableCompression" type="xs:boolean"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="DisableCleanup" type="xs:boolean"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="LoadAtModuleInit" type="xs:boolean"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="ExcludeAssemblies" type="xs:string"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="IncludeAssemblies" type="xs:string"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="Unmanaged32Assemblies" type="xs:string"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="Unmanaged64Assemblies" type="xs:string"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|             <xs:attribute name="PreloadOrder" type="xs:string"> | ||||
|               <xs:annotation> | ||||
|                 <xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation> | ||||
|               </xs:annotation> | ||||
|             </xs:attribute> | ||||
|           </xs:complexType> | ||||
|         </xs:element> | ||||
|       </xs:all> | ||||
|       <xs:attribute name="VerifyAssembly" type="xs:boolean"> | ||||
|         <xs:annotation> | ||||
|           <xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> | ||||
|         </xs:annotation> | ||||
|       </xs:attribute> | ||||
|       <xs:attribute name="VerifyIgnoreCodes" type="xs:string"> | ||||
|         <xs:annotation> | ||||
|           <xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> | ||||
|         </xs:annotation> | ||||
|       </xs:attribute> | ||||
|       <xs:attribute name="GenerateXsd" type="xs:boolean"> | ||||
|         <xs:annotation> | ||||
|           <xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> | ||||
|         </xs:annotation> | ||||
|       </xs:attribute> | ||||
|     </xs:complexType> | ||||
|   </xs:element> | ||||
| </xs:schema> | ||||
							
								
								
									
										71
									
								
								PoE-MxFilterGen-Updater/PoE-MxFilterGen-Updater.csproj
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										71
									
								
								PoE-MxFilterGen-Updater/PoE-MxFilterGen-Updater.csproj
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,71 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||||
|   <Import Project="..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" /> | ||||
|   <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||||
|   <PropertyGroup> | ||||
|     <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||||
|     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||||
|     <ProjectGuid>{F875FF57-77C4-4643-958F-C593D906FA39}</ProjectGuid> | ||||
|     <OutputType>Exe</OutputType> | ||||
|     <RootNamespace>PoE_MxFilterGen_Updater</RootNamespace> | ||||
|     <AssemblyName>PoE-MxFilterGen-Updater</AssemblyName> | ||||
|     <TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion> | ||||
|     <FileAlignment>512</FileAlignment> | ||||
|     <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> | ||||
|     <Deterministic>true</Deterministic> | ||||
|     <NuGetPackageImportStamp> | ||||
|     </NuGetPackageImportStamp> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||||
|     <PlatformTarget>AnyCPU</PlatformTarget> | ||||
|     <DebugSymbols>true</DebugSymbols> | ||||
|     <DebugType>full</DebugType> | ||||
|     <Optimize>false</Optimize> | ||||
|     <OutputPath>bin\Debug\</OutputPath> | ||||
|     <DefineConstants>DEBUG;TRACE</DefineConstants> | ||||
|     <ErrorReport>prompt</ErrorReport> | ||||
|     <WarningLevel>4</WarningLevel> | ||||
|   </PropertyGroup> | ||||
|   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||||
|     <PlatformTarget>AnyCPU</PlatformTarget> | ||||
|     <DebugType>pdbonly</DebugType> | ||||
|     <Optimize>true</Optimize> | ||||
|     <OutputPath>bin\Release\</OutputPath> | ||||
|     <DefineConstants>TRACE</DefineConstants> | ||||
|     <ErrorReport>prompt</ErrorReport> | ||||
|     <WarningLevel>4</WarningLevel> | ||||
|   </PropertyGroup> | ||||
|   <ItemGroup> | ||||
|     <Reference Include="Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL"> | ||||
|       <HintPath>..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll</HintPath> | ||||
|     </Reference> | ||||
|     <Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> | ||||
|       <HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath> | ||||
|     </Reference> | ||||
|     <Reference Include="System" /> | ||||
|     <Reference Include="System.Core" /> | ||||
|     <Reference Include="System.Xml.Linq" /> | ||||
|     <Reference Include="System.Data.DataSetExtensions" /> | ||||
|     <Reference Include="Microsoft.CSharp" /> | ||||
|     <Reference Include="System.Data" /> | ||||
|     <Reference Include="System.Net.Http" /> | ||||
|     <Reference Include="System.Xml" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <Compile Include="Program.cs" /> | ||||
|     <Compile Include="Properties\AssemblyInfo.cs" /> | ||||
|   </ItemGroup> | ||||
|   <ItemGroup> | ||||
|     <None Include="App.config" /> | ||||
|     <None Include="packages.config" /> | ||||
|   </ItemGroup> | ||||
|   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||||
|   <Import Project="..\packages\Fody.6.0.0\build\Fody.targets" Condition="Exists('..\packages\Fody.6.0.0\build\Fody.targets')" /> | ||||
|   <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | ||||
|     <PropertyGroup> | ||||
|       <ErrorText>Ce projet fait référence à des packages NuGet qui sont manquants sur cet ordinateur. Utilisez l'option de restauration des packages NuGet pour les télécharger. Pour plus d'informations, consultez http://go.microsoft.com/fwlink/?LinkID=322105. Le fichier manquant est : {0}.</ErrorText> | ||||
|     </PropertyGroup> | ||||
|     <Error Condition="!Exists('..\packages\Fody.6.0.0\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.0.0\build\Fody.targets'))" /> | ||||
|     <Error Condition="!Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" /> | ||||
|   </Target> | ||||
| </Project> | ||||
							
								
								
									
										33
									
								
								PoE-MxFilterGen-Updater/Program.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								PoE-MxFilterGen-Updater/Program.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,33 @@ | ||||
| using Newtonsoft.Json; | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Diagnostics; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Net; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
| 
 | ||||
| namespace PoE_MxFilterGen_Updater | ||||
| { | ||||
|     class Program | ||||
|     { | ||||
|         public class SETTINGS | ||||
|         { | ||||
|             public int uniqueValue { get; set; } | ||||
|             public int fossilValue { get; set; } | ||||
|             public int cardValue { get; set; } | ||||
|             public string updateurl { get; set; } | ||||
|             public string section { get; set; } | ||||
|         } | ||||
| 
 | ||||
|         static void Main(string[] args) | ||||
|         { | ||||
|             SETTINGS j = JsonConvert.DeserializeObject<SETTINGS>(File.ReadAllText("settings.json")); | ||||
|             string url = j.updateurl; | ||||
|             WebClient wc = new WebClient(); | ||||
|             wc.DownloadFile(url, "mxfiltergen.exe"); | ||||
|             Process.Start("mxfiltergen.exe"); | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										36
									
								
								PoE-MxFilterGen-Updater/Properties/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								PoE-MxFilterGen-Updater/Properties/AssemblyInfo.cs
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,36 @@ | ||||
| using System.Reflection; | ||||
| using System.Runtime.CompilerServices; | ||||
| using System.Runtime.InteropServices; | ||||
| 
 | ||||
| // Les informations générales relatives à un assembly dépendent de | ||||
| // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations | ||||
| // associées à un assembly. | ||||
| [assembly: AssemblyTitle("PoE-MxFilterGen-Updater")] | ||||
| [assembly: AssemblyDescription("")] | ||||
| [assembly: AssemblyConfiguration("")] | ||||
| [assembly: AssemblyCompany("")] | ||||
| [assembly: AssemblyProduct("PoE-MxFilterGen-Updater")] | ||||
| [assembly: AssemblyCopyright("Copyright ©  2020")] | ||||
| [assembly: AssemblyTrademark("")] | ||||
| [assembly: AssemblyCulture("")] | ||||
| 
 | ||||
| // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly | ||||
| // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de | ||||
| // COM, affectez la valeur true à l'attribut ComVisible sur ce type. | ||||
| [assembly: ComVisible(false)] | ||||
| 
 | ||||
| // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM | ||||
| [assembly: Guid("f875ff57-77c4-4643-958f-c593d906fa39")] | ||||
| 
 | ||||
| // Les informations de version pour un assembly se composent des quatre valeurs suivantes : | ||||
| // | ||||
| //      Version principale | ||||
| //      Version secondaire | ||||
| //      Numéro de build | ||||
| //      Révision | ||||
| // | ||||
| // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut | ||||
| // en utilisant '*', comme indiqué ci-dessous : | ||||
| // [assembly: AssemblyVersion("1.0.*")] | ||||
| [assembly: AssemblyVersion("1.0.0.0")] | ||||
| [assembly: AssemblyFileVersion("1.0.0.0")] | ||||
							
								
								
									
										6
									
								
								PoE-MxFilterGen-Updater/packages.config
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								PoE-MxFilterGen-Updater/packages.config
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <packages> | ||||
|   <package id="Costura.Fody" version="4.1.0" targetFramework="net472" /> | ||||
|   <package id="Fody" version="6.0.0" targetFramework="net472" developmentDependency="true" /> | ||||
|   <package id="Newtonsoft.Json" version="12.0.3" targetFramework="net472" /> | ||||
| </packages> | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user