Skip to content

Commit 3142a30

Browse files
committed
Add version in file name
1 parent 5aa548c commit 3142a30

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build.fsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,19 @@ let excludedFiles = [
121121
"/**/*.xml"
122122
]
123123

124+
type NpmPackage = JsonProvider<"src/Azure.Functions.Cli/npm/package.json">
125+
124126
Target "Zip" (fun _ ->
127+
let npmVersion = NpmPackage.GetSample().Version
125128
targetRuntimes
126129
|> List.iter (fun runtime ->
127130
!! (buildDir @@ runtime @@ @"/**/*.*")
128131
|> (fun f -> List.fold (--) f excludedFiles)
129-
|> Zip (buildDir @@ runtime) (deployDir @@ ("Azure.Functions.Cli." + runtime + ".zip")))
132+
|> Zip (buildDir @@ runtime) (deployDir @@ ("Azure.Functions.Cli." + runtime + "." + npmVersion + ".zip")))
130133

131134
!! (buildDirNoRuntime @@ @"/**/*.*")
132135
|> (fun f -> List.fold (--) f excludedFiles)
133-
|> Zip buildDirNoRuntime (deployDir @@ "Azure.Functions.Cli.no-runtime.zip")
136+
|> Zip buildDirNoRuntime (deployDir @@ "Azure.Functions.Cli.no-runtime." + npmVersion + ".zip")
134137
)
135138

136139
type SigningInfo =

0 commit comments

Comments
 (0)