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