File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 6
6
open System
7
7
open System.IO
8
8
open System.Net
9
+ open System.Security .Cryptography
9
10
open System.Threading .Tasks
10
11
11
12
open Microsoft.WindowsAzure .Storage
@@ -134,6 +135,17 @@ Target "Zip" (fun _ ->
134
135
!! ( buildDirNoRuntime @@ @" /**/*.*" )
135
136
|> ( fun f -> List.fold (--) f excludedFiles)
136
137
|> 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))
137
149
)
138
150
139
151
type SigningInfo =
You can’t perform that action at this time.
0 commit comments