1.8 KiB
Build the macOS .app and .pkg
-
Run release build of the
Importer.csproj.dotnet build -f:net7.0-maccatalyst -c:ReleaseResults (
.appand.pkg) will be in the./Importer/bin/Release/net7.0-maccatalyst/directory.
Notarize a macOS app
-
Use the included
notarizer.shscript to notarize your application../notarizer.sh --notarize -a "./Importer/bin/Release/net7.0-maccatalyst/Bitwarden Importer.app" -b com.bitwarden.importer -u $APPLE_ID_USERNAME -p $APPLE_ID_PASSWORD -v LTZ2PFU5D6 -
Check the status of the notarization process with Apple by running the check command with
notarizer.sh. The RequestUUID is available from the response in running the previous command../notarizer.sh --check -u $APPLE_ID_USERNAME -p $APPLE_ID_PASSWORD -k <REQUEST_UUID> -
Once notarization is successful, staple the notarized application.
./notarizer.sh --staple --file "./Importer/bin/Release/net7.0-maccatalyst/Bitwarden Importer.app"
Build the macOS .zip artifact
-
Follow steps for building the macOS
.app. -
Notarize the
Bitwarden Importer.appby following the steps for notarizing a macOS app. -
Zip up the
Bitwarden Importer.appfile for publishing.
Build the macOS .pkg artifact
-
Follow steps for building the macOS
.pkg. -
Notarize the
.pkgby following the steps for notarizing a macOS app.
Build the Windows .msix artifact
-
Run release build of the
Importer.csproj.dotnet publish -f net7.0-windows10.0.19041.0 -c Release /p:RuntimeIdentifierOverride=win10-x64 -
Sign the created
.msixwithazuresigntoolazuresigntool.exe sign -v -kvu <URL> -kvi <ID> -kvt <TENANT> -kvs <SECRET> -kvc code-signing-certificate-3 -tr http://timestamp.digicert.com .\Importer_1.0.0.0_x64.msix