diff --git a/README.md b/README.md index 581e8da..4f70beb 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,10 @@ git push --follow-tags scripts/package_release.sh # Notarize the app -scripts/notarize.sh "test@example.com" "@keychain:altool" MyOrg Product/Xcodes.zip +# Do this from the Product directory so the app is zipped without being nested inside Product +pushd Product +../scripts/notarize.sh "test@example.com" "@keychain:altool" MyOrg Xcodes.zip +popd # Go to https://github.com/RobotsAndPencils/XcodesApp/releases # Edit the latest draft release diff --git a/Scripts/notarize.sh b/Scripts/notarize.sh index 89de6d4..b9dd426 100755 --- a/Scripts/notarize.sh +++ b/Scripts/notarize.sh @@ -66,4 +66,4 @@ app_path="$(basename -s ".zip" "$file").app" xcrun stapler staple "$app_path" # Zip the stapled app for distribution -zip -r "$file" "$app_path" +ditto -c -k --sequesterRsrc --keepParent "$file" "$app_path"