We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa702ad commit 8807b80Copy full SHA for 8807b80
1 file changed
.github/workflows/build.yml
@@ -109,18 +109,11 @@ jobs:
109
mkdir -p release
110
cp photon.exe release/
111
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
+ # Auto-detect every DLL photon.exe needs and copy from /mingw64/bin
+ ldd photon.exe \
+ | grep -i '/mingw64/' \
+ | awk '{print $3}' \
+ | xargs -I{} cp {} release/
124
125
- name: Create placeholder icon
126
shell: pwsh
0 commit comments