GH Hosted: Sign exe on a VM

This commit is contained in:
aboyko
2023-07-13 15:52:57 -04:00
parent 9e7ba5d1a9
commit a0878404d6
2 changed files with 26 additions and 6 deletions

12
.github/scripts/sign-exe-in-zip-file.sh vendored Executable file
View File

@@ -0,0 +1,12 @@
file=$0
sign_script=$1
filename="$(basename -- $file)"
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}