-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that the assemblies are in fact signed #1268
Conversation
@@ -28,26 +28,26 @@ HarfBuzz soname 0.20601.0 | |||
|
|||
# SkiaSharp.dll | |||
SkiaSharp assembly 1.68.0.0 | |||
SkiaSharp file 1.68.2.0 | |||
SkiaSharp file 1.68.2.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump the versions... Pity to do it so soon.
@@ -119,7 +119,8 @@ Task ("libs") | |||
platform = ".Linux"; | |||
} | |||
} | |||
RunMSBuild ($"./source/SkiaSharpSource{platform}.sln"); | |||
RunMSBuild ($"./source/SkiaSharpSource{platform}.sln", | |||
bl: $"./output/binlogs/libs{platform}.binlog"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Get those binlogs.
<_SnExePath Condition=" '$(OS)' == 'Windows_NT' and '$(_SnExePath)' == '' and Exists('$(SDK40ToolsPath)sn.exe') ">$(SDK40ToolsPath)sn.exe</_SnExePath> | ||
<_SnExePath Condition=" '$(OS)' == 'Windows_NT' and '$(_SnExePath)' == '' and Exists('$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\sn.exe') ">$(MSBuildProgramFiles32)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools\sn.exe</_SnExePath> | ||
<_SnExePath Condition=" '$(_SnExePath)' == '' ">sn</_SnExePath> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Find the location of sn.exe
<Target Name="_SignAssemblyVerify" AfterTargets="Build" Condition=" '$(SignAssembly)' == 'true' and '$(Configuration)' == 'Release' and '$(TargetPath)' != '' "> | ||
<Exec Command=""$(_SnExePath)" -vf "$(TargetPath)"" /> | ||
</Target> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VERIFY!
this does slow down the build loop by a few ms, but better safe than sorry!
Description of Change
Ensure that the assemblies are in fact signed.
Since the addition of the
Xamarin.Build.TypeRedirector
NuGet package to fix up the VS2017 and VS2019 issues, the assembly is modified AFTER the signing, so that breaks it. This PR now specifies that the signing task depends on the redirection task.Type redirector issues:
Bugs Fixed
API Changes
None.
Behavioral Changes
None.
PR Checklist