Skip to content

Commit

Permalink
Update the notarization tools
Browse files Browse the repository at this point in the history
  • Loading branch information
Drewbadour committed Apr 25, 2019
1 parent 4d43609 commit 0c52c12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Binary file not shown.
Binary file not shown.
9 changes: 3 additions & 6 deletions Install360Controller/notarize.sh
@@ -1,12 +1,9 @@
#!/bin/sh
# TODO(Drew): Update README to note changes to DeveloperSettings file

DEV_EMAIL=`echo | grep DEVELOPER_EMAIL ../DeveloperSettings.xcconfig`
NOTARIZATION_PASSWORD=`echo | grep NOTARIZATION_PASSWORD ../DeveloperSettings.xcconfig`
DMG_NAME=`echo | ls | grep '360ControllerInstall.*.dmg'`
USERNAME="${DEV_EMAIL//\DEVELOPER_EMAIL = }"
PASSWORD="${NOTARIZATION_PASSWORD//\NOTARIZATION_PASSWORD = }"

AUTHENTICATION="--username \"${DEV_EMAIL//\DEVELOPER_EMAIL = }\" --password \"${NOTARIZATION_PASSWORD//\NOTARIZATION_PASSWORD = }\""
xcrun altool --notarize-app --primary-bundle-id "com.mice.driver" --username ${USERNAME} --password ${PASSWORD} --file ${DMG_NAME}

xcrun altool --notarize-app --primary-bundle-id "com.mice.driver" ${AUTHENTICATION} --file ${DMG_NAME}
xcrun stapler staple ${DMG_NAME}
xcrun stapler validate ${DMG_NAME}
5 changes: 5 additions & 0 deletions Install360Controller/staple.sh
@@ -0,0 +1,5 @@
#!/bin/sh
DMG_NAME=`echo | ls | grep '360ControllerInstall.*.dmg'`
xcrun stapler staple ${DMG_NAME}
xcrun stapler validate ${DMG_NAME}

0 comments on commit 0c52c12

Please sign in to comment.