Hi everyone, I've successfully compiled my app, notarize and signed it using my Dev App certificate, then converted it to a pkg (for distribution outside the app store) and signed/notarized/staple it using my Dev Installer ID certificate (all of this was already quite a journey ;-). By installing it in CLI using sudo installer -pkg MyOfflineModel-arm.pkg -target / and then inspecting /var/log/install.log, I see the app to be relocated to src-tauri/target/release/bundle/macos/ Has anyone encountered this? Any idea? Thanks!
#macOS pkg not installed under /Applications/ but relocated to src-tauri/target/release/bundle/macos/
8 messages · Page 1 of 1 (latest)
didn't hear about many apps being converted to .pkg (though i'd love support for this in our bundler) so i doubt someone will be able to help you here (just to set expectations)
thanks anyway
looking into https://github.com/tauri-apps/tauri/issues/4415 which talks about pkg. will update this post if i fix it
I fixed it thanks to https://stackoverflow.com/a/49373317/23443629
pkgbuild --root <path_to_parent_dir_of_your_app> --component-plist src-tauri/Components.plist --identifier "<app_id>" --install-location /Applications UnsignedPackage.pkg xcrun productsign --sign "Developer ID Installer: <your team id>" UnsignedPackage.pkg <YourApp>.pkg xcrun notarytool submit <YourApp>.pkg --keychain-profile "<your-profile-name" --wait xcrun stapler staple <YourApp>.pkg spctl --assess --type install --verbose=4 <YourApp>.pkg sudo installer -pkg <YourApp>.pkg -target / sudo less /var/log/installer.log
you should see PackageKit: Touched bundle /Applications/<YourApp>.app in the logs
-# so the doc for pkg building could be improved with this component plist mandatory key