Skip to content

Commit 8807b80

Browse files
Update build.yml
1 parent aa702ad commit 8807b80

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -109,18 +109,11 @@ jobs:
109109
mkdir -p release
110110
cp photon.exe release/
111111
112-
for dll in \
113-
SDL2.dll SDL2_image.dll SDL2_ttf.dll \
114-
libgcc_s_seh-1.dll libwinpthread-1.dll \
115-
libstdc++-6.dll libjpeg-62.dll \
116-
libpng16-16.dll libwebp-7.dll \
117-
libfreetype-6.dll zlib1.dll \
118-
libjxl.dll libjxl_threads.dll \
119-
libbrotlicommon.dll libbrotlidec.dll \
120-
libhwy.dll; do
121-
src="/mingw64/bin/$dll"
122-
[ -f "$src" ] && cp "$src" release/
123-
done
112+
# Auto-detect every DLL photon.exe needs and copy from /mingw64/bin
113+
ldd photon.exe \
114+
| grep -i '/mingw64/' \
115+
| awk '{print $3}' \
116+
| xargs -I{} cp {} release/
124117
125118
- name: Create placeholder icon
126119
shell: pwsh

0 commit comments

Comments
 (0)