Uploading a tauri app to flathub when it's in a monorepo

I have an app (for reference: GitHub - aervxa/lepse: a personal organization/productivity tool that maps your daily tasks to meaningful goals. and is aesthetic as hell. · GitHub) I’m trying to generate a flatpak manifest that builds the app. It’s an npm workspace and uses npm patch, so the lockfile is on v4, and the build-tools supports only upto v3

I’ve basically 3 options:

  • use source from the github releases and unpack a .deb file (but then it won’t be fit for flathub since any source available code must be built)
  • try to have an unpatched version of the package lock (the patch is for a sibling app, and not the tauri app), the app depends on types from the patched app tho (the patched pacakge on that app is not related to these types at all)
  • maybe pnpm patch wouldn’t have problems like this? so switch over entirely to pnpm?

I’ve spent at least a few hours on this, I’ve really no clue on how these would turn out or what should be done, any help is very much appreciated.