GH Hosted: corrections to execute sign script

This commit is contained in:
aboyko
2023-07-13 17:51:03 -04:00
parent e7943c8481
commit 966c1c131f
3 changed files with 29 additions and 12 deletions

View File

@@ -6,7 +6,8 @@ echo "****************************************************************"
echo "*** Processing : ${file}"
echo "****************************************************************"
destination_folder_name=extracted_${filename}
unzip $file -d ./${destination_folder_name}
sts_folder=find ./${destination_folder_name} -maxdepth 1 -type d -name 'sts-*' -print -quit
$sign_script ${sts_folder}/SpringToolSuite4.exe ${sts_folder}/SpringToolSuite4.exe
zip -r $file ./${destination_folder_name}
unzip -q $file -d ./${destination_folder_name}
sts_folder=`find ./${destination_folder_name} -maxdepth 1 -type d -name 'sts-*' -print -quit`
echo "Found folder: ${sts_folder}"
$sign_script ./${sts_folder}/SpringToolSuite4.exe ${sts_folder}/SpringToolSuite4.exe
zip -r -q $file ./${destination_folder_name}

View File

@@ -106,9 +106,9 @@ jobs:
SSH_KEY: ~bamboo/.ssh/id_rsa
SSH_USER: signer
run: |
ls -la
workdir=`pwd`
files=`ls *.zip`
for file in $files
do
./.github/scripts/sign-exe-in-zip-file.sh $file ./github/scripts/sign-exe.sh
./.github/scripts/sign-exe-in-zip-file.sh $file ${workdir}/.github/scripts/sign-exe.sh
done

View File

@@ -652,7 +652,7 @@
<execution>
<id>update-nightly-downloads</id>
<phase>deploy</phase>
<phase>verify</phase>
<configuration>
<skip>${skip.update-nightly-download-page}</skip>
<target>
@@ -665,11 +665,27 @@
<replace file="${project.build.directory}/../../common/html/sts4-nightly-${dist.target.major}.html" token="@TARGET@" value="${dist.target}" summary="yes" />
<replace file="${project.build.directory}/../../common/html/sts4-nightly-${dist.target.major}.html" token="@MAJOR-TARGET@" value="${dist.target.major}" summary="yes" />
<s3 accessKey="${dist.accessKey}" secretKey="${dist.secretKey}">
<upload bucketName="${dist.bucket}" file="${project.build.directory}/../../common/html/sts4-nightly-${dist.target.major}.html"
toFile="snapshot/STS4/sts4-nightly-${dist.target.major}.html" publicRead="true">
</upload>
</s3>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>upload-nightly-downloads</id>
<phase>deploy</phase>
<configuration>
<skip>${skip.update-nightly-download-page}</skip>
<target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
<taskdef resource="org/springframework/build/aws/ant/antlib.xml" />
<s3 accessKey="${dist.accessKey}" secretKey="${dist.secretKey}">
<upload bucketName="${dist.bucket}" file="${project.build.directory}/../../common/html/sts4-nightly-${dist.target.major}.html"
toFile="snapshot/STS4/sts4-nightly-${dist.target.major}.html" publicRead="true">
</upload>
</s3>
</target>
</configuration>
<goals>