From 6bf3446585b2ed7949de92b0f37dbd9c2d1e2893 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Tue, 4 Jul 2017 23:52:41 +0300 Subject: [PATCH] add code signing script --- LocaleEmulator.sln | 7 +++++-- Scripts/sign-package.ps1 | 8 ++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 Scripts/sign-package.ps1 diff --git a/LocaleEmulator.sln b/LocaleEmulator.sln index 5e33149..09e4e0a 100644 --- a/LocaleEmulator.sln +++ b/LocaleEmulator.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25123.0 +# Visual Studio 15 +VisualStudioVersion = 15.0.26430.14 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LEContextMenuHandler", "LEContextMenuHandler\LEContextMenuHandler.csproj", "{0041073D-2FA7-4B35-B904-9C606C89C8CD}" EndProject @@ -13,8 +13,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LECommonLibrary", "LECommon EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LEInstaller", "LEInstaller\LEInstaller.csproj", "{E218923D-59A4-4FA5-B4BC-E540290DA3F8}" ProjectSection(ProjectDependencies) = postProject + {A0011409-0A25-4E95-BF6D-EE7CB9C287DA} = {A0011409-0A25-4E95-BF6D-EE7CB9C287DA} {C4DEF32B-8FBB-41B6-80DC-C60339402323} = {C4DEF32B-8FBB-41B6-80DC-C60339402323} {0041073D-2FA7-4B35-B904-9C606C89C8CD} = {0041073D-2FA7-4B35-B904-9C606C89C8CD} + {A2CF5369-4665-49F6-B948-B44296002C3D} = {A2CF5369-4665-49F6-B948-B44296002C3D} + {33B8F5CA-34A7-4826-BAD9-7CEC63DF4D0C} = {33B8F5CA-34A7-4826-BAD9-7CEC63DF4D0C} EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LEUpdater", "LEUpdater\LEUpdater.csproj", "{A0011409-0A25-4E95-BF6D-EE7CB9C287DA}" diff --git a/Scripts/sign-package.ps1 b/Scripts/sign-package.ps1 new file mode 100644 index 0000000..72bce44 --- /dev/null +++ b/Scripts/sign-package.ps1 @@ -0,0 +1,8 @@ +if(-not (Test-Path env:CI)) +{ + $signExe = 'C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86\signtool.exe' + $files = gci '..\Build\Release\*' -Recurse -Include *.exe,LoaderDll.dll,LocaleEmulator.dll | %{('"{0}"' -f $_.FullName)} + $timestampUrl = 'http://time.certum.pl/' + + .$signExe sign /a /v /fd sha256 /t $timestampUrl $files +} \ No newline at end of file