File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,18 +207,23 @@ cp /usr/local/lib/libcdio_cdda.so.2 appdir
207207cp /usr/local/lib/libcdio_paranoia.so.2 appdir
208208cp /usr/local/lib/libcurl.so.4 appdir
209209
210+ strip --strip-all appdir/lib* .so*
211+
212+ # Copy OpenSSL dependencies
213+ mkdir -p appdir/openssl
214+
210215if [[ " $OS " = Linux ]]; then
211- cp -P /usr/lib/$HOST /libcrypto.so.3 appdir
212- cp -P /usr/lib/$HOST /libssl.so.3 appdir
216+ cp -P /usr/lib/$HOST /libcrypto.so.3 appdir/openssl
217+ cp -P /usr/lib/$HOST /libssl.so.3 appdir/openssl
213218else
214- cp -P /lib/libcrypto.so.* appdir
215- cp -P /usr/lib/libssl.so.* appdir
219+ cp -P /lib/libcrypto.so.* appdir/openssl
220+ cp -P /usr/lib/libssl.so.* appdir/openssl
216221
217- chmod 0755 appdir/libcrypto.so.*
218- chmod 0755 appdir/libssl.so.*
222+ chmod 0755 appdir/openssl/ libcrypto.so.*
223+ chmod 0755 appdir/openssl/ libssl.so.*
219224fi
220225
221- strip --strip-all appdir/lib* .so*
226+ strip --strip-all appdir/openssl/ lib* .so*
222227
223228# Build custom AppImage runtime
224229if [[ " $AppImageArch " = riscv64 || " $AppImageArch " = ppc64el || " $OS " != Linux ]]; then
Original file line number Diff line number Diff line change 1818 MAIN=" $HERE /freac"
1919fi
2020
21- LD_LIBRARY_PATH=" ${HERE} " \
21+ # Use system SSL libraries over our own if available
22+
23+ if ! LD_LIBRARY_PATH=" ${HERE} " ldd ${HERE} /libsmooth-0.9.so.0 > /dev/null 2> /dev/null; then
24+ LIBRARY_PATH=" ${HERE} /openssl"
25+ fi
26+
27+ LD_LIBRARY_PATH=" ${HERE} :${LIBRARY_PATH} " \
2228LD_PRELOAD=" ${HERE} /codecs/ogg.so:${HERE} /codecs/vorbis.so" \
2329exec " ${MAIN} " " $@ "
You can’t perform that action at this time.
0 commit comments