diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 149a5c9e..4f6588e5 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,3 +1,6 @@ +### 4.5.1 - 2018-05-22 +* Signed NuGet packages + ### 4.5.0 - 2018-05-22 * Random: New Xoshiro256StarStar random source *~Colin Green* diff --git a/build.fsx b/build.fsx index ddd9d71b..ef2460ea 100644 --- a/build.fsx +++ b/build.fsx @@ -392,6 +392,8 @@ Target "Build" (fun _ -> pack "MathNet.Numerics.sln" CopyDir "out/Numerics/packages/NuGet" "src/Numerics/bin/Release/" (fun n -> n.EndsWith(".nupkg")) CopyDir "out/Numerics/packages/NuGet" "src/FSharp/bin/Release/" (fun n -> n.EndsWith(".nupkg")) + if hasBuildParam "sign" then + Seq.iter (signNuGet fingerprint timeserver) (!! "out/Numerics/packages/NuGet/*.nupkg" -- "out/Numerics/packages/NuGet/*.Signed.*.nupkg") ) "Prepare" ==> "Build" @@ -426,6 +428,8 @@ Target "DataBuild" (fun _ -> pack "src/Data/Matlab/Matlab.csproj" CopyDir "out/Data/packages/NuGet" "src/Data/Text/bin/Release/" (fun n -> n.EndsWith(".nupkg")) CopyDir "out/Data/packages/NuGet" "src/Data/Matlab/bin/Release/" (fun n -> n.EndsWith(".nupkg")) + if hasBuildParam "sign" then + Seq.iter (signNuGet fingerprint timeserver) (!! "out/Data/packages/NuGet/*.nupkg" -- "out/Data/packages/NuGet/*.Signed.*.nupkg") ) "Prepare" ==> "DataBuild" diff --git a/build/build-framework.fsx b/build/build-framework.fsx index e6e05c72..07f5219d 100644 --- a/build/build-framework.fsx +++ b/build/build-framework.fsx @@ -283,6 +283,17 @@ let sign fingerprint timeserver files = if result <> 0 then failwithf "Error during SignTool call " +let signNuGet fingerprint timeserver file = + CleanDir "obj/NuGet" + let args = sprintf """sign "%s" -HashAlgorithm SHA256 -TimestampHashAlgorithm SHA256 -CertificateFingerprint "%s" -Timestamper "%s""" (FullName file) fingerprint timeserver + let result = + ExecProcess (fun info -> + info.FileName <- "packages/build/NuGet.CommandLine/tools/NuGet.exe" + info.WorkingDirectory <- FullName "obj/NuGet" + info.Arguments <- args) (TimeSpan.FromMinutes 10.) + if result <> 0 then failwith "Error during NuGet sign." + DeleteDir "obj/NuGet" + // ZIP diff --git a/src/FSharp.Tests/AssemblyInfo.fs b/src/FSharp.Tests/AssemblyInfo.fs index f2d620cc..13f0b02e 100644 --- a/src/FSharp.Tests/AssemblyInfo.fs +++ b/src/FSharp.Tests/AssemblyInfo.fs @@ -10,9 +10,9 @@ open System.Runtime.InteropServices [] [] -[] -[] -[] +[] +[] +[] [] [] diff --git a/src/FSharp/AssemblyInfo.fs b/src/FSharp/AssemblyInfo.fs index e79039d9..8c91e79a 100644 --- a/src/FSharp/AssemblyInfo.fs +++ b/src/FSharp/AssemblyInfo.fs @@ -44,9 +44,9 @@ open System.Runtime.InteropServices [] [] -[] -[] -[] +[] +[] +[] [] [] diff --git a/src/FSharp/FSharp.fsproj b/src/FSharp/FSharp.fsproj index 34b43090..eda4bab3 100644 --- a/src/FSharp/FSharp.fsproj +++ b/src/FSharp/FSharp.fsproj @@ -7,11 +7,11 @@ MathNet.Numerics true MathNet.Numerics.FSharp$(PackageIdSuffix) - 4.5.0 + 4.5.1 Math.NET Numerics for F#$(TitleSuffix) F# Modules for Math.NET Numerics, the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Supports .Net Framework 4.5 or higher and .Net Standard 1.6 or higher, on Windows, Linux and Mac.$(DescriptionSuffix) - Random: New Xoshiro256StarStar random source ~Colin Green + Signed NuGet packages fsharp F# math numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft false en diff --git a/src/Numerics.Tests/Properties/AssemblyInfo.cs b/src/Numerics.Tests/Properties/AssemblyInfo.cs index be20396e..4bfbefc3 100644 --- a/src/Numerics.Tests/Properties/AssemblyInfo.cs +++ b/src/Numerics.Tests/Properties/AssemblyInfo.cs @@ -9,8 +9,8 @@ using MathNet.Numerics.UnitTests; [assembly: ComVisible(false)] [assembly: Guid("04157581-63f3-447b-a277-83c6e69126a4")] -[assembly: AssemblyVersion("4.5.0.0")] -[assembly: AssemblyFileVersion("4.5.0.0")] -[assembly: AssemblyInformationalVersion("4.5.0")] +[assembly: AssemblyVersion("4.5.1.0")] +[assembly: AssemblyFileVersion("4.5.1.0")] +[assembly: AssemblyInformationalVersion("4.5.1")] [assembly: UseLinearAlgebraProvider] diff --git a/src/Numerics/Numerics.csproj b/src/Numerics/Numerics.csproj index 7a151f4e..f1adf468 100644 --- a/src/Numerics/Numerics.csproj +++ b/src/Numerics/Numerics.csproj @@ -7,11 +7,11 @@ MathNet.Numerics true MathNet.Numerics$(PackageIdSuffix) - 4.5.0 + 4.5.1 Math.NET Numerics$(TitleSuffix) Math.NET Numerics is the numerical foundation of the Math.NET project, aiming to provide methods and algorithms for numerical computations in science, engineering and every day use. Supports .Net Framework 4.0 or higher and .Net Standard 1.3 or higher, on Windows, Linux and Mac.$(DescriptionSuffix) - Random: New Xoshiro256StarStar random source ~Colin Green + Signed NuGet packages math numeric statistics probability integration interpolation regression solve fit linear algebra matrix fft false en diff --git a/src/TestData/Properties/AssemblyInfo.cs b/src/TestData/Properties/AssemblyInfo.cs index 011e2ecd..581a008e 100644 --- a/src/TestData/Properties/AssemblyInfo.cs +++ b/src/TestData/Properties/AssemblyInfo.cs @@ -15,5 +15,5 @@ using System.Runtime.InteropServices; [assembly: Guid("a4a6a08e-5265-4608-a43d-e4f2e210ba2d")] -[assembly: AssemblyVersion("4.5.0.0")] -[assembly: AssemblyFileVersion("4.5.0.0")] +[assembly: AssemblyVersion("4.5.1.0")] +[assembly: AssemblyFileVersion("4.5.1.0")]