Unable to install SDK (Macbook Air M5)

I’ve seen multiple threads on this issue but those solutions haven’t fixed the issue for me. I’ve deleted the .Playdate folder, moved the .pkg out of my iCloud synced folders, and tried installing via CLI. It fails every time. When installing with the GUI installer, this is what my log gives

May 27 13:34:18 Novas-MacBook-Air installd[2910]: PackageKit: ----- Begin install -----
May 27 13:35:35 Novas-MacBook-Air installd[2910]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “PlaydateSDK.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Applications/PlaydateSDK.pkg#PlaydateSDK.pkg, PKInstallPackageIdentifier=date.play.sdk, NSLocalizedDescription=An error occurred while running scripts from the package “PlaydateSDK.pkg”.} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cPlaydateSDK.pkg\U201d.";
NSURL = "file:///Applications/PlaydateSDK.pkg#PlaydateSDK.pkg";
PKInstallPackageIdentifier = "date.play.sdk";
}
May 27 13:35:36 Novas-MacBook-Air Installer[4794]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
May 27 13:35:36 Novas-MacBook-Air Installer[4794]: Displaying 'Install Failed' UI.
May 27 13:35:36 Novas-MacBook-Air Installer[4794]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.

An update on this:
It seems that the issue was with post-install scripts specifically. The SDK and files seems to be in the Developer folder, but it failed to correctly establish the SDK PATH.

These are the steps I took beforehand for troubleshooting, though the last step may be all that was needed:

First, I removed quarantine from the file
xattr -dr com.apple.quarantine ~/Downloads/PlaydateSDK.pkg

Then, I installed via CLI
sudo installer -pkg ~/Downloads/PlaydateSDK.pkg -target / -verbose

Afterwards, I checked the PATH and version
echo $PLAYDATE_SDK_PATH (this output empty)

pdc --version (this output 3.0.6

Lastly, and might have been all that was needed, I declared the PATH
echo 'export PLAYDATE_SDK_PATH="$HOME/Developer/PlaydateSDK"' >> ~/.zshrc
source ~/.zshrc

Now the path is correct and everything functions so far. I hope this helps others who have this issue.