Skip to content
Snippets Groups Projects
Commit cd0a8e67 authored by Ferdie Reijnen's avatar Ferdie Reijnen
Browse files

#259 Removed macOS notarization.

parent 9310dcf2
No related branches found
No related tags found
2 merge requests!443#420 develop to master for v0.8-RC1,!421#259 Upgrade to Java 17
#!/usr/bin/env sh
################################################################################
# Copyright (c) 2021, 2022 Contributors to the Eclipse Foundation
#
# See the NOTICE file(s) distributed with this work for additional
# information regarding copyright ownership.
#
# This program and the accompanying materials are made available under the terms
# of the MIT License which is available at https://opensource.org/licenses/MIT
#
# SPDX-License-Identifier: MIT
################################################################################
# See also https://wiki.eclipse.org/IT_Infrastructure_Doc#macOS_Notarization
SCRIPT_DIR="$(dirname "$0")"
PRODUCTS_DIR="${SCRIPT_DIR}/target/products/"
pushd $PRODUCTS_DIR
DMG="$(find . -type f -name "*-mac*.dmg")"
PRIMARY_BUNDLE_ID="eclipse-escet-app-bundle"
RESPONSE=$(curl -s -X POST \
-F file=@${DMG} \
-F 'options={"primaryBundleId": "'${PRIMARY_BUNDLE_ID}'", "staple": true};type=application/json' \
https://cbi.eclipse.org/macos/xcrun/notarize)
UUID=$(echo $RESPONSE | grep -Po '"uuid"\s*:\s*"\K[^"]+')
STATUS=$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
sleep 10s
RESPONSE=$(curl -s https://cbi.eclipse.org/macos/xcrun/${UUID}/status)
STATUS=$(echo $RESPONSE | grep -Po '"status"\s*:\s*"\K[^"]+')
done
if [[ ${STATUS} != 'COMPLETE' ]]; then
echo "Notarization failed: ${RESPONSE}"
exit 1
fi
rm "${DMG}"
curl -JO https://cbi.eclipse.org/macos/xcrun/${UUID}/download
popd
...@@ -187,29 +187,6 @@ ...@@ -187,29 +187,6 @@
</executions> </executions>
</plugin> </plugin>
<!-- Notarize macOS .dmg package. -->
<!-- Temporarily disabled notarization. It fails as JustJ 11.0.2 is not correctly signed. -->
<!--
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>post-integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>bash</executable>
<commandlineArgs>macos-notarize-dmg.sh</commandlineArgs>
<useMavenLogger>true</useMavenLogger>
</configuration>
</execution>
</executions>
</plugin>
-->
</plugins> </plugins>
</build> </build>
</profile> </profile>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment