Skip to content

Commit 85745dd

Browse files
committed
copy dependencies in Makefile
1 parent b4865f0 commit 85745dd

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

.github/workflows/windows-msys2.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,6 @@ jobs:
8787
working-directory: ssr
8888
run: |
8989
make
90-
- name: make install-strip
91-
working-directory: ssr
92-
run: |
93-
make install-strip
94-
- name: copy dependencies
95-
working-directory: ssr/windows-installer
96-
# See https://github.com/msys2/MINGW-packages/issues/5204#issuecomment-1013818547
97-
run: |
98-
ldd bin/*.exe | grep -iv system32 | grep -v :$ | cut -f2 -d\> | cut -f1 -d\( | while read a; do ! [ -e "bin/`basename $a`" ] && cp -v "$a" bin/ || true; done
9990
- name: make nsis
10091
working-directory: ssr
10192
run: |

data/nsis/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ if ENABLE_WINDOWS_INSTALLER
1010

1111
# this is done after installing the executables
1212
install-exec-hook:
13+
## the line starting with "ldd" was adapted from
14+
## https://github.com/msys2/MINGW-packages/issues/5204#issuecomment-1013818547
1315
for exec in $(SSR_executables); do \
1416
windeployqt --no-compiler-runtime $(DESTDIR)$(bindir)/$$exec ; \
17+
ldd $(DESTDIR)$(bindir)/$$exec | grep -iv system32 | cut -f2 -d\> | cut -f1 -d\( | while read a; do ! [ -e "$(DESTDIR)$(bindir)/`basename $$a`" ] && cp -v "$$a" $(DESTDIR)$(bindir)/ || true; done \
1518
done
19+
## those are copied by windeployqt, but they are not needed:
1620
$(RM) -r $(DESTDIR)$(bindir)/styles
1721
$(RM) -r $(DESTDIR)$(bindir)/imageformats
1822

0 commit comments

Comments
 (0)