GH-Hosted: Fix win exe signing script

This commit is contained in:
aboyko
2023-07-14 16:44:43 -04:00
parent 7bbdba9f93
commit 93d6ab21ca

View File

@@ -1,3 +1,5 @@
set -e
file=$1
filename="$(basename -- $file)"
@@ -12,14 +14,12 @@ unzip -q $file -d ./${destination_folder_name}
echo "Successfully extracted ${filename}"
sts_folder=`find ./${destination_folder_name} -maxdepth 1 -type d -name 'sts-*' -print -quit`
echo "Found STS distro folder: ${sts_folder}"
echo "About to sign win exe file: ./${sts_folder}/SpringToolSuite4.exe"
${workdir}/.github/scripts/sign-exe.sh ./${sts_folder}/SpringToolSuite4.exe ${sts_folder}/SpringToolSuite4.exe
echo "Contents of ${destination_folder_name}"
ls ./${destination_folder_name}
echo "About to sign win exe file: ${sts_folder}/SpringToolSuite4.exe"
${workdir}/.github/scripts/sign-exe.sh ${sts_folder}/SpringToolSuite4.exe ${sts_folder}/SpringToolSuite4.exe
echo "Adding to zip contents of a folder ${destination_folder_name}"
zip -r -q $file ./${destination_folder_name}
cd ${destination_folder_name}
zip -r -q ../$file .
cd ..
echo "Successfully zipped ${destination_folder_name} into ${file}"
java -jar ${workdir}/.github/scripts/self-extracting-jar-creator.jar $file
echo "Remove temporary ${destination_folder_name}"