Merge pull request #314 from Microsoft/signing

Add signing configuration information to repository.
This commit is contained in:
Michael Niksa 2018-11-29 12:42:22 -08:00 committed by GitHub
commit 7e5c034b7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,37 @@
REM @echo off
REM This script copies the files to have different paths to be signed and copies them back
if "%2" == "" goto :usage
if "%1" == "sign" goto :sign
if "%1" == "afterSign" goto :afterSign
goto :usage
:sign
pushd "%2"
mkdir tosign
call :checkedCopy ..\b\Release\anycpu\ColorTool.exe tosign\ColorTool.exe
popd
goto :end
:afterSign
pushd "%2"
call :checkedCopy signed\ColorTool.exe ..\b\Release\anycpu\ColorTool.exe
popd
goto :end
:checkedCopy
copy %1 %2
if %errorlevel% NEQ 0 (
popd
exit 1
)
exit /b
:usage
echo "Usage: CopySignFiles <sign| afterSign> <root of the repo>"
echo "Will copy the binary release from <root>\Release to be sent to signed"
:end

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<SignConfigXML>
<job platform="anycpu" configuration="release" dest="__RELBINPATH__\..\..\..\s\signed" jobname="Console ColorTool" approvers="miniksa;migrie;duhowett;austdi">
<file src="__RELBINPATH__\..\..\..\s\tosign\colortool.exe" signType="Authenticode" dest="__RELBINPATH__\..\..\..\s\signed\colortool.exe" />
</job>
</SignConfigXML>