.net maui mac catalyst app how to specify INSTALL_PATH when app is packed

89 Views Asked by At

I use this command to build .net maui mac catalyst .pkg

dotnet publish -f net8.0-maccatalyst -c Release -p:MtouchLink=SdkOnly -p:CreatePackage=true -p:EnableCodeSigning=true -p:EnablePackageSigning=true -p:CodesignKey="Apple Distribution: Eigil Krogh (4657....)" -p:CodesignProvision="ChronoWiz Profile App Store MAC" -p:CodesignEntitlements="Platforms\MacCatalyst\Entitlements.Release.plist" -p:PackageSigningKey="3rd Party Mac Developer Installer: Eigil Krogh (4657....)"

As can be seen CreatePackage=true and a .pkg is created.

QUESTION: How / where do I specify the INSTALL_PATH where the .app is installed when the user dobbel clicks the .pkg. It is normally Applications, but where do I specify that ?

Searched for the solution.

To get an answer.

1

There are 1 best solutions below

4
Alexandar May - MSFT On

You can double click on the pkg file and install it on the current folder. However, if it's a published pkg is for AppStore, after publishing it to Appstore, it only can be in Applications. Therefore, you can't change the INSTALL_PATH where the .app is installed.