Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roll back hardening #154

Merged
merged 1 commit into from
Aug 21, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions pkgbuild/pkgbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,15 @@ cat distribution.xml.tmpl \

rm -rf OpenJDK.pkg

# TODO Bring this back pending resolution to https://github.com/AdoptOpenJDK/TSC/issues/107
# Skip this on 8 until we can produce a hardened runtime
if [ "$MAJOR_VERSION" != 8 ]; then
echo "Notarizing the installer (please be patient! this takes aprox 10 minutes)"
sudo xcode-select --switch /Applications/Xcode.app
cd $WORKSPACE/pkgbuild/notarize
npm install
node notarize.js --appBundleId $IDENTIFIER --appPath ${OUTPUT_DIRECTORY}
# Validates that the app has been notarized
spctl -a -v --type install ${OUTPUT_DIRECTORY}
cd $WORKSPACE
fi
#if [ "$MAJOR_VERSION" != 8 ]; then
# echo "Notarizing the installer (please be patient! this takes aprox 10 minutes)"
# sudo xcode-select --switch /Applications/Xcode.app
# cd $WORKSPACE/pkgbuild/notarize
# npm install
# node notarize.js --appBundleId $IDENTIFIER --appPath ${OUTPUT_DIRECTORY}
# # Validates that the app has been notarized
# spctl -a -v --type install ${OUTPUT_DIRECTORY}
# cd $WORKSPACE
#fi