Skip to content

Build your personal knowledge base with Trilium Notes

build(desktop): make the AppDir readable before packaging

Elian Doran01f993b427ec
diff --git a/apps/desktop/scripts/build-appimage.sh b/apps/desktop/scripts/build-appimage.sh
index 5705b88143..b6cfa528aa 100755
--- a/apps/desktop/scripts/build-appimage.sh
+++ b/apps/desktop/scripts/build-appimage.sh
@@ -46,6 +46,9 @@ mkdir -p "$APPDIR"
# Copy the packaged app contents into the AppDir
cp -a "$PACKAGED_DIR"/. "$APPDIR/"
+# `cp -a` carries the packaged dir's 0700 mode onto the AppDir, and appimagetool refuses an
+# AppDir that other users cannot read.
+chmod -R a+rX "$APPDIR"
# Create the AppRun entry point
cat > "$APPDIR/AppRun" << 'APPRUN_EOF'