Skip to content

Commit

Permalink
Correct signing inside rewrite-gradle.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Sep 7, 2024
1 parent 992d825 commit 236c6b7
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/scripts/sign-osx-distro-file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function signExecutableInsideJar() {
rm -rf $extracted_jar_dir
mkdir $extracted_jar_dir
echo "Extracting archive ${f}"
unzip -q $f -d ./${extracted_jar_dir}
unzip -o -q $f -d ./${extracted_jar_dir}
echo "Extracted successfully"
for jnilib_file in `find $extracted_jar_dir -type f | grep -E "$4"`
do
echo "Signing binary file: ${jnilib_file}"
Expand All @@ -60,7 +61,7 @@ function signExecutableInsideNestedJar() {
rm -rf $extracted_jar_dir
mkdir $extracted_jar_dir
echo "Extracting archive ${jar_file}"
unzip -q $jar_file -d ./${extracted_jar_dir}
unzip -o -q $jar_file -d ./${extracted_jar_dir}
signExecutableInsideJar $extracted_jar_dir $3 $4 $5
cd $extracted_jar_dir
zip -r -u ../$jar_file .
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/eclipse-ls-extensions-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,41 @@ jobs:
else
./mvnw --batch-mode clean package -Pe433 -P${{ inputs.build_type }} -Dhttpclient.retry-max=20 -Declipse.p2.mirrors=false -Dmaven.test.skip=true -Dtycho.localArtifacts=ignore
fi
- name: GChat spring-tools-team notification
if: ${{ inputs.build_type == 'release' }}
run: |
cd eclipse-language-servers
current_version=`./mvnw help:evaluate -Dexpression="project.version" -q -DforceStdout`
version=${current_version%%-*}
build_type=${{ inputs.build_type }}
build_type=${build_type^}
curl --location --request POST '${{ secrets.TOOLS_TEAM_GCHAT_WEBHOOK_URL }}' \
--header 'Content-Type: application/json' \
--data-raw "{
\"cards\": [
{
\"header\": {
\"title\": \"${build_type} Eclipse LS Extensions ${version}\",
\"subtitle\": \"${{ inputs.sts4-language-servers-version }}\",
\"imageUrl\": \"https://avatars.githubusercontent.com/u/317776?s=48&v=4\",
},
\"sections\": [
{
\"widgets\": [
{
\"keyValue\": {
\"topLabel\": \"P2 Update Site\",
\"content\": \"<a href=${DOWNLOAD_URL_ROOT}/${{ steps.upload-p2.outputs.p2_path }}/>${DOWNLOAD_URL_ROOT}/${{ steps.upload-p2.outputs.p2_path }}</a>\"
}
}
]
}
]
}
]
}"
notify-failure:
needs: [ eclipse-language-servers-build ]
Expand Down

0 comments on commit 236c6b7

Please sign in to comment.