We download the source code from here:
https://github.com/obsidianmd/obsidian-releases

For this package we use the latest release for arm64 and amd64.
amd64: obsidian-X.Y.Z.tar.gz
arm64: obsidian-X.Y.Z-arm64.tar.gz

Extract the tarballs into their own architecture specific directories:

tar -xf obsidian-X.Y.Z.tar.gz --strip-components=1 --one-top-level=obsidian_amd64
tar -xf obsidian-X.Y.Z-arm64.tar.gz --strip-components=1 --one-top-level=obsidian_arm64

And then create a .tar.gz with the 2 directories.

tar -czf obsidian_X.Y.Z.orig.tar.gz obsidian_amd64 obsidian_arm64
