File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 66open System
77open System.IO
88open System.Net
9+ open System.Security .Cryptography
910open System.Threading .Tasks
1011
1112open Microsoft.WindowsAzure .Storage
@@ -134,6 +135,17 @@ Target "Zip" (fun _ ->
134135 !! ( buildDirNoRuntime @@ @" /**/*.*" )
135136 |> ( fun f -> List.fold (--) f excludedFiles)
136137 |> Zip buildDirNoRuntime ( deployDir @@ " Azure.Functions.Cli.no-runtime." + npmVersion + " .zip" )
138+
139+ let getSha2 filePath =
140+ File.ReadAllBytes ( filePath)
141+ |> ( new SHA256Managed()) .ComputeHash
142+ |> BitConverter.ToString
143+ |> fun x -> x.Replace( " -" , String.Empty)
144+
145+ Directory.GetFiles ( deployDir)
146+ |> Array.iter ( fun file ->
147+ let sha2 = getSha2 file
148+ File.WriteAllText ( file + " .sha2" , sha2))
137149)
138150
139151type SigningInfo =
You can’t perform that action at this time.
0 commit comments