Skip to content

Commit

Permalink
git: code-sign .exe files
Browse files Browse the repository at this point in the history
It has been reported that Windows File Protection (WFP) only caches
results on code-signed .exe files. Which means that every script that
calls unsigned .exe files, like, a gazillion files (such as Git does) are
prone to execute super-slowly, for no good reason.

So let's just code-sign the .exe files with the signtool command-line set
via the SIGNTOOL environment variable.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Aug 24, 2016
1 parent 73d60ff commit 4ddc5d6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions mingw-w64-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,17 @@ include Makefile
print-builtins:
@echo $(BUILT_INS)
sign-executables:
ifeq (,$(SIGNTOOL))
@echo Skipping code-signing
else
@eval $(SIGNTOOL) $(filter %.exe,$(ALL_PROGRAMS)) \
contrib/credential/wincred/git-credential-wincred.exe git.exe \
cmd/git{,-gui,k}.exe compat-bash.exe git-{bash,cmd}.exe
endif
EOF
make -f print.mak sign-executables &&
make -f print.mak print-builtins | tr ' ' '\n' > builtins.txt &&

CC=gcc make -C contrib/credential/wincred
Expand Down

0 comments on commit 4ddc5d6

Please sign in to comment.