Skip to content

Commit 6e645fd

Browse files
committed
sign DLL files to be added into the MSI (#198)
So far only the MSI had been considered for signing. This commit adds the logic to also sign the DLL files that are going to be packed into the MSI. The commit adds the code to find all the DLL files within the directory unpackaged from the ZIP file produced by the build, then sign them with same function used to sign the MSI file. (cherry picked from commit 89ec656)
1 parent 78a3d8f commit 6e645fd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

installer/build/scripts/Build.fsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@ module Builder =
161161
unzipFile (zipFile, buildDir)
162162
tracefn "Unzipped zip file in %s" zipFile
163163

164+
// sign every DLL to be part of the MSI
165+
let unzippedDir = Regex.Replace(zipFile, "(^.*)\.zip$", "$1/")
166+
let dllFiles = unzippedDir
167+
|> directoryInfo
168+
|> filesInDirMatching ("*.dll")
169+
|> Seq.map (fun f -> f.FullName)
170+
for dllFile in dllFiles do
171+
Sign dllFile
172+
164173
let exitCode = ExecProcess (fun info ->
165174
info.FileName <- sprintf "%sInstaller" MsiBuildDir
166175
info.WorkingDirectory <- MsiDir

0 commit comments

Comments
 (0)