From b4865f074d3eb931667059c5e381313f3c49db13 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 17 Jun 2023 16:16:13 +0200 Subject: [PATCH] Strip .exe files --- .github/workflows/windows-msys2.yml | 4 ++-- Makefile.am | 2 +- data/nsis/Makefile.am | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/windows-msys2.yml b/.github/workflows/windows-msys2.yml index 684c1d64..fc448a98 100644 --- a/.github/workflows/windows-msys2.yml +++ b/.github/workflows/windows-msys2.yml @@ -87,10 +87,10 @@ jobs: working-directory: ssr run: | make - - name: make install + - name: make install-strip working-directory: ssr run: | - make install + make install-strip - name: copy dependencies working-directory: ssr/windows-installer # See https://github.com/msys2/MINGW-packages/issues/5204#issuecomment-1013818547 diff --git a/Makefile.am b/Makefile.am index a3fb02a8..fc2a4054 100644 --- a/Makefile.am +++ b/Makefile.am @@ -124,7 +124,7 @@ doc: .PHONY: doc if ENABLE_WINDOWS_INSTALLER -nsis: install +nsis: install-strip $(MAKE) -C data/nsis $@ else nsis: diff --git a/data/nsis/Makefile.am b/data/nsis/Makefile.am index c847b71f..ad7348c9 100644 --- a/data/nsis/Makefile.am +++ b/data/nsis/Makefile.am @@ -11,8 +11,8 @@ if ENABLE_WINDOWS_INSTALLER # this is done after installing the executables install-exec-hook: for exec in $(SSR_executables); do \ - windeployqt --no-compiler-runtime $(DESTDIR)$(bindir)/$$exec \ - ; done + windeployqt --no-compiler-runtime $(DESTDIR)$(bindir)/$$exec ; \ + done $(RM) -r $(DESTDIR)$(bindir)/styles $(RM) -r $(DESTDIR)$(bindir)/imageformats