aws-delivlib 14.9.1 → 14.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,12 +21,13 @@ fi
|
|
|
21
21
|
found=false
|
|
22
22
|
for nuget_package_path in $(find dotnet -name *.nupkg -not -iname *.symbols.nupkg); do
|
|
23
23
|
found=true
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
nuget_package=$(cd $(dirname ${nuget_package_path}) && echo $PWD)/$(basename ${nuget_package_path})
|
|
25
|
+
echo "🔑 Applying authenticode signatures to assemblies in ${nuget_package}"
|
|
26
|
+
for file in $(unzip -Z1 ${nuget_package} '*.dll'); do
|
|
26
27
|
echo "📄 Assembly: ${file}"
|
|
27
28
|
tmp=$(mktemp -d)
|
|
28
29
|
# extract the dll from the zip file
|
|
29
|
-
unzip -q ${
|
|
30
|
+
unzip -q ${nuget_package} -d ${tmp} ${file}
|
|
30
31
|
# need to set appropriate permissions, otherwise the file has none
|
|
31
32
|
chmod u+rw ${tmp}/${file}
|
|
32
33
|
# upload dll to signer bucket
|
|
@@ -50,7 +51,7 @@ for nuget_package_path in $(find dotnet -name *.nupkg -not -iname *.symbols.nupk
|
|
|
50
51
|
# replace the dll in the nuget package
|
|
51
52
|
(
|
|
52
53
|
cd ${tmp}
|
|
53
|
-
zip -qfr ${
|
|
54
|
+
zip -qfr ${nuget_package} ${file}
|
|
54
55
|
)
|
|
55
56
|
# clean up temporary directory
|
|
56
57
|
rm -rf ${tmp}
|