Skip to content

Build your personal knowledge base with Trilium Notes

chore(desktop/appimage): fix path for packaging

Elian Dorancc010e156807
diff --git a/apps/desktop/scripts/build-appimage.sh b/apps/desktop/scripts/build-appimage.sh
index d4016ce134..ec728470a9 100755
--- a/apps/desktop/scripts/build-appimage.sh
+++ b/apps/desktop/scripts/build-appimage.sh
@@ -30,7 +30,7 @@ case "$ARCH" in
esac
# Find the packaged app directory
-PACKAGED_DIR="$DESKTOP_DIR/out/$PRODUCT_NAME-linux-$ARCH"
+PACKAGED_DIR="$DESKTOP_DIR/dist/out/$PRODUCT_NAME-linux-$ARCH"
if [ ! -d "$PACKAGED_DIR" ]; then
echo "Error: Packaged app not found at $PACKAGED_DIR"
echo "Run 'electron-forge make' or 'electron-forge package' first."
@@ -40,7 +40,7 @@ fi
echo "Building AppImage from: $PACKAGED_DIR"
# Create AppDir structure
-APPDIR="$DESKTOP_DIR/out/$PRODUCT_NAME.AppDir"
+APPDIR="$DESKTOP_DIR/dist/out/$PRODUCT_NAME.AppDir"
rm -rf "$APPDIR"
mkdir -p "$APPDIR"