Skip to content

Commit 0729a4c

Browse files
authored
do not deploy non executable electron binaries
these are usually loaded as libraries, so they cannot be wrapped with sharun.
1 parent fc849d8 commit 0729a4c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

useful-tools/quick-sharun.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,11 @@ _make_deployment_array() {
688688
# electron has a resources directory that may have binaries
689689
d="${ELECTRON_BIN%/*}"/resources
690690
if [ -d "$d" ]; then
691-
set -- $(find "$d" -type f ! -name '*.so*')
691+
for f in $(find "$d" -type f ! -name '*.so*'); do
692+
if [ -x "$f" ]; then
693+
set -- "$@" "$f"
694+
fi
695+
done
692696
fi
693697
fi
694698
if [ "$DEPLOY_P11KIT" = 1 ]; then

0 commit comments

Comments
 (0)