Skip to content

Commit

Permalink
Merge pull request #57 from Ceiridge/net5ui
Browse files Browse the repository at this point in the history
New WPF GUI (and .NET 5)
  • Loading branch information
Ceiridge authored Apr 4, 2021
2 parents dd965e1 + 43ebd20 commit f87df83
Show file tree
Hide file tree
Showing 42 changed files with 792 additions and 862 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/buildandrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
- name: Zip the builds
shell: powershell
run: |
cd ChromeDevExtWarningPatcher\bin\Release;
Compress-Archive -DestinationPath ChromeDevExtWarningPatcher.zip -Path ChromeDevExtWarningPatcher.exe,CommandLine.dll,Microsoft.Win32.TaskScheduler.dll,DotNetZip.dll;
cd ChromeDevExtWarningPatcher\bin\Release\net5.0-windows;
Compress-Archive -DestinationPath ChromeDevExtWarningPatcher.zip -Path ChromeDevExtWarningPatcher.exe,ChromeDevExtWarningPatcher.dll,ChromeDevExtWarningPatcher.runtimeconfig.json,ChromeDevExtWarningPatcher.deps.json,CommandLine.dll,Dia2Lib.dll,MaterialDesignColors.dll,MaterialDesignThemes.Wpf.dll,Microsoft.Win32.TaskScheduler.dll,OSExtensions.dll,System.Drawing.Common.dll,TraceReloggerLib.dll,runtimes;
dir;
- uses: "Ceiridge/action-automatic-releases@master" # actually made by marvinpinto
Expand All @@ -74,4 +74,4 @@ jobs:
prerelease: true
title: "Prerelease Build"
files: |
ChromeDevExtWarningPatcher/bin/Release/ChromeDevExtWarningPatcher.zip
ChromeDevExtWarningPatcher/bin/Release/net5.0-windows/ChromeDevExtWarningPatcher.zip
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

51 changes: 18 additions & 33 deletions ChromeDevExtWarningPatcher.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChromeDevExtWarningPatcher", "ChromeDevExtWarningPatcher\ChromeDevExtWarningPatcher.csproj", "{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}"
ProjectSection(ProjectDependencies) = postProject
{BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5} = {BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5}
{BAA11244-ECA8-44B9-B976-B9BCDF37BF99} = {BAA11244-ECA8-44B9-B976-B9BCDF37BF99}
{29D94F79-97B1-4801-8A65-4A8BECBF2D46} = {29D94F79-97B1-4801-8A65-4A8BECBF2D46}
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CommandLine", "lib\commandlineparser_commandline\src\CommandLine\CommandLine.csproj", "{29D94F79-97B1-4801-8A65-4A8BECBF2D46}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ChromePatcherDll", "ChromePatcherDll\ChromePatcherDll.vcxproj", "{BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChromeDllInjector", "ChromeDllInjector\ChromeDllInjector.csproj", "{BAA11244-ECA8-44B9-B976-B9BCDF37BF99}"
Expand All @@ -21,6 +12,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChromeDllInjector", "Chrome
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ChromeDllInjectorBuildZipper", "ChromeDllInjectorBuildZipper\ChromeDllInjectorBuildZipper.csproj", "{8178E5BD-BE0E-4840-8F26-4152682068C1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ChromeDevExtWarningPatcher", "ChromeDevExtWarningPatcher\ChromeDevExtWarningPatcher.csproj", "{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}"
ProjectSection(ProjectDependencies) = postProject
{BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5} = {BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5}
{BAA11244-ECA8-44B9-B976-B9BCDF37BF99} = {BAA11244-ECA8-44B9-B976-B9BCDF37BF99}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -31,30 +28,6 @@ Global
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Debug|x64.ActiveCfg = Debug|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Debug|x64.Build.0 = Debug|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Debug|x86.ActiveCfg = Debug|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Debug|x86.Build.0 = Debug|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Release|Any CPU.Build.0 = Release|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Release|x64.ActiveCfg = Release|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Release|x64.Build.0 = Release|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Release|x86.ActiveCfg = Release|Any CPU
{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}.Release|x86.Build.0 = Release|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Debug|Any CPU.Build.0 = Debug|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Debug|x64.ActiveCfg = Debug|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Debug|x64.Build.0 = Debug|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Debug|x86.ActiveCfg = Debug|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Debug|x86.Build.0 = Debug|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Release|Any CPU.ActiveCfg = Release|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Release|Any CPU.Build.0 = Release|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Release|x64.ActiveCfg = Release|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Release|x64.Build.0 = Release|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Release|x86.ActiveCfg = Release|Any CPU
{29D94F79-97B1-4801-8A65-4A8BECBF2D46}.Release|x86.Build.0 = Release|Any CPU
{BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5}.Debug|Any CPU.ActiveCfg = Debug|x64
{BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5}.Debug|Any CPU.Build.0 = Debug|x64
{BA6B041F-E0E9-45EC-86D8-BC5D1D864AE5}.Debug|x64.ActiveCfg = Debug|x64
Expand Down Expand Up @@ -91,6 +64,18 @@ Global
{8178E5BD-BE0E-4840-8F26-4152682068C1}.Release|x64.Build.0 = Release|Any CPU
{8178E5BD-BE0E-4840-8F26-4152682068C1}.Release|x86.ActiveCfg = Release|Any CPU
{8178E5BD-BE0E-4840-8F26-4152682068C1}.Release|x86.Build.0 = Release|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Debug|x64.ActiveCfg = Debug|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Debug|x64.Build.0 = Debug|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Debug|x86.ActiveCfg = Debug|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Debug|x86.Build.0 = Debug|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Release|Any CPU.Build.0 = Release|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Release|x64.ActiveCfg = Release|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Release|x64.Build.0 = Release|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Release|x86.ActiveCfg = Release|Any CPU
{9F535953-6B7C-49B5-B0E4-B5C845ECEF47}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
15 changes: 15 additions & 0 deletions ChromeDevExtWarningPatcher/App.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<Application x:Class="ChromeDevExtWarningPatcher.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:ChromeDevExtWarningPatcher"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
StartupUri="MainView.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme BaseTheme="Dark" PrimaryColor="Blue" SecondaryColor="LightBlue" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesignTheme.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
7 changes: 7 additions & 0 deletions ChromeDevExtWarningPatcher/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System;
using System.Windows;
using ChromeDevExtWarningPatcher.Patches;

namespace ChromeDevExtWarningPatcher {
public partial class App : Application { }
}
10 changes: 10 additions & 0 deletions ChromeDevExtWarningPatcher/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Windows;

[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
199 changes: 49 additions & 150 deletions ChromeDevExtWarningPatcher/ChromeDevExtWarningPatcher.csproj
Original file line number Diff line number Diff line change
@@ -1,158 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<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>{0254DB23-B64D-4D54-8FF8-F4D570E95AD4}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>ChromeDevExtWarningPatcher</RootNamespace>
<AssemblyName>ChromeDevExtWarningPatcher</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<IsWebBootstrapper>false</IsWebBootstrapper>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
<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>
<Prefer32Bit>false</Prefer32Bit>
</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>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>3EAD0F383E7EB98A5C4542DC4DC9A22B6D1672B1</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>ChromeDevExtWarningPatcher_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<GenerateManifests>false</GenerateManifests>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
<PropertyGroup>
<TargetZone>LocalIntranet</TargetZone>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="DotNetZip, Version=1.13.8.0, Culture=neutral, PublicKeyToken=6583c7c814667745, processorArchitecture=MSIL">
<HintPath>..\packages\DotNetZip.1.13.8\lib\net40\DotNetZip.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Win32.TaskScheduler, Version=2.8.20.0, Culture=neutral, PublicKeyToken=c416bc1b32d97233, processorArchitecture=MSIL">
<HintPath>..\packages\TaskScheduler.2.8.20\lib\net40\Microsoft.Win32.TaskScheduler.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<Version>5.0.0.0</Version>
<Authors>Ceiridge</Authors>
<Company />
<Product>Chromium Developer Extension Warning Patcher</Product>
<Description>Patches Chromium and disables the developer extension warning among others</Description>
<Copyright>GNU General Public License 3, Ceiridge</Copyright>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageProjectUrl>https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher</PackageProjectUrl>
<RepositoryUrl>https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher</RepositoryUrl>

<DisableWinExeOutputInference>true</DisableWinExeOutputInference>
<EnableDefaultApplicationDefinition>false</EnableDefaultApplicationDefinition>
<StartupObject>ChromeDevExtWarningPatcher.MainClass</StartupObject>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

<ItemGroup>
<Compile Include="CommandLineOptions.cs" />
<Compile Include="CustomCheckBox.cs" />
<Compile Include="InstallationFinder\Defaults\CustomPath.cs" />
<Compile Include="InstallationFinder\Defaults\Yandex.cs" />
<Compile Include="InstallationFinder\InstallationPaths.cs" />
<Compile Include="PatcherInstaller.cs" />
<Compile Include="Patches\BytePatch.cs" />
<Compile Include="InstallationFinder\Defaults\Brave.cs" />
<Compile Include="InstallationFinder\Defaults\Chrome.cs" />
<Compile Include="InstallationFinder\Defaults\Edge.cs" />
<Compile Include="InstallationFinder\Installation.cs" />
<Compile Include="InstallationFinder\InstallationManager.cs" />
<Compile Include="PatcherGui.xaml.cs">
<DependentUpon>PatcherGui.xaml</DependentUpon>
</Compile>
<Compile Include="Patches\BytePatchManager.cs" />
<Compile Include="Patches\BytePatchPattern.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="..\LICENSE">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>

<ItemGroup>
<None Include="app.config" />
<None Include="app.manifest" />
<None Include="ChromeDevExtWarningPatcher_TemporaryKey.pfx" />
<None Include="packages.config" />
<None Include="Resources\ChromeDllInjector.zip" />
<PackageReference Include="CommandLineParser" Version="2.8.0" />
<PackageReference Include="MaterialDesignThemes" Version="4.0.0" />
<PackageReference Include="System.Drawing.Common" Version="5.0.2" />
<PackageReference Include="TaskScheduler" Version="2.9.1" />
</ItemGroup>

<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<Page Include="PatcherGui.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
<EmbeddedResource Update="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\lib\commandlineparser_commandline\src\CommandLine\CommandLine.csproj">
<Project>{29d94f79-97b1-4801-8a65-4a8becbf2d46}</Project>
<Name>CommandLine</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>cmd.exe /c ..\..\..\signall.bat</PostBuildEvent>
</PropertyGroup>
</Project>

<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="cmd.exe /c ..\signall.bat" />
</Target>

</Project>
30 changes: 15 additions & 15 deletions ChromeDevExtWarningPatcher/CommandLineOptions.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
using CommandLine;
using System.Collections.Generic;

namespace ChromeDevExtWarningPatcher {
public class CommandLineOptions {
[Option("groups", Required = false, HelpText = "Set what patch groups you want to use. See patterns.xml to get the group ids (comma-separated: 0,1,2,etc.)", Separator = ',')]
public IEnumerable<int> Groups { get; set; }

[Option('w', "noWait", Required = false, HelpText = "Disable the almost-pointless wait after finishing")]
public bool NoWait { get; set; }

[Option("customPath", Required = false, HelpText = "Instead of automatically detecting and patching all chrome.dll files, define a custom Application-folder path (see README) (string in quotes is recommended)")]
public string CustomPath { get; set; }
}
}
using System.Collections.Generic;
using CommandLine;

namespace ChromeDevExtWarningPatcher {
public class CommandLineOptions {
[Option("groups", Required = false, HelpText = "Set what patch groups you want to use. See patterns.xml to get the group ids (comma-separated: 0,1,2,etc.)", Separator = ',')]
public IEnumerable<int> Groups { get; set; } = new List<int>();

[Option('w', "noWait", Required = false, HelpText = "Disable the almost-pointless wait after finishing")]
public bool NoWait { get; set; }

[Option("customPath", Required = false, HelpText = "Instead of automatically detecting and patching all chrome.dll files, define a custom Application-folder path (see README) (string in quotes is recommended)")]
public string? CustomPath { get; set; }
}
}
11 changes: 11 additions & 0 deletions ChromeDevExtWarningPatcher/ComponentModels/InstallationElement.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using ChromeDevExtWarningPatcher.InstallationFinder;

namespace ChromeDevExtWarningPatcher.ComponentModels {
public class InstallationElement : SelectionListElement {
public InstallationPaths Paths { get; set; }

public InstallationElement(string name, InstallationPaths paths) : base(name) {
this.Paths = paths;
}
}
}
6 changes: 6 additions & 0 deletions ChromeDevExtWarningPatcher/ComponentModels/MainModel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace ChromeDevExtWarningPatcher.ComponentModels {
public class MainModel {
public SelectionListModel BrowserListModel { get; set; } = new SelectionListModel();
public SelectionListModel PatchListModel { get; set; } = new SelectionListModel();
}
}
Loading

0 comments on commit f87df83

Please sign in to comment.