From 29b04f1b24b9657ad5c62473de4a017e39198c5a Mon Sep 17 00:00:00 2001 From: Ceiridge <philipp34533@icloud.com> Date: Tue, 6 Apr 2021 23:44:45 +0200 Subject: [PATCH] Fix: Signing the .NET 5 gui --- ChromeDevExtWarningPatcher/ChromeDevExtWarningPatcher.csproj | 2 +- ChromeDevExtWarningPatcher/localsignall.bat | 2 ++ sign.bat | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 ChromeDevExtWarningPatcher/localsignall.bat diff --git a/ChromeDevExtWarningPatcher/ChromeDevExtWarningPatcher.csproj b/ChromeDevExtWarningPatcher/ChromeDevExtWarningPatcher.csproj index 0694783..87f53d8 100644 --- a/ChromeDevExtWarningPatcher/ChromeDevExtWarningPatcher.csproj +++ b/ChromeDevExtWarningPatcher/ChromeDevExtWarningPatcher.csproj @@ -51,7 +51,7 @@ </ItemGroup> <Target Name="PostBuild" AfterTargets="PostBuildEvent"> - <Exec Command="cmd.exe /c ..\signall.bat" /> + <Exec Command="cmd.exe /c IF "$(ConfigurationName)" == "Release" (localsignall.bat)" /> </Target> </Project> diff --git a/ChromeDevExtWarningPatcher/localsignall.bat b/ChromeDevExtWarningPatcher/localsignall.bat new file mode 100644 index 0000000..396864f --- /dev/null +++ b/ChromeDevExtWarningPatcher/localsignall.bat @@ -0,0 +1,2 @@ +cd bin\Release +..\..\..\signall.bat \ No newline at end of file diff --git a/sign.bat b/sign.bat index 68abf8a..2237891 100644 --- a/sign.bat +++ b/sign.bat @@ -1,3 +1,3 @@ @echo off -signtool.exe sign /f %CodeSignFile% /as /seal /d "Executable of the Chrome Developer Mode Extension Warning Patcher" /du "https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher" /tr http://timestamp.globalsign.com/scripts/timstamp.dll %FileLoc%\*.dll %FileLoc%\*.exe +signtool.exe sign /f %CodeSignFile% /as /seal /d "Executable of the Chrome Developer Mode Extension Warning Patcher" /du "https://github.com/Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher" /tr http://freetsa.org/tsr %FileLoc%\*.dll %FileLoc%\*.exe exit /b 0