Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Add LICENCE to .fsproj
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Jun 15, 2022
1 parent a651cc0 commit a506c9c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build/PackageTasks.fs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ let copy_nupkg() =
File.Copy(x, targetFilePath)
)

open System.Text.RegularExpressions

let commitLinkPattern = @"\[\[#[a-z0-9]*\]\(.*\)\] "

let replaceCommitLink input= Regex.Replace(input,commitLinkPattern,"")

let pack = BuildTask.create "Pack" [clean; build; runTests] {
if promptYesNo (sprintf "creating stable package with version %s OK?" stableVersionTag )
then
Expand All @@ -36,7 +42,7 @@ let pack = BuildTask.create "Pack" [clean; build; runTests] {
{p.MSBuildParams with
Properties = ([
"Version",stableVersionTag
"PackageReleaseNotes", (release.Notes |> String.concat "\r\n")
"PackageReleaseNotes", (release.Notes |> String.concat "\r\n" |> replaceCommitLink)
] @ p.MSBuildParams.Properties)
}
{
Expand All @@ -59,7 +65,7 @@ let packPrerelease = BuildTask.create "PackPrerelease" [setPrereleaseTag; clean;
{p.MSBuildParams with
Properties = ([
"Version", prereleaseTag
"PackageReleaseNotes", (release.Notes |> String.toLines )
"PackageReleaseNotes", (release.Notes |> String.toLines |> replaceCommitLink)
] @ p.MSBuildParams.Properties)
}
{
Expand Down
2 changes: 2 additions & 0 deletions src/Nfdi4Plants.Fornax/Nfdi4Plants.Fornax.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
</PackageTags>
<RepositoryUrl>https://github.com/Freymaurer/nfdi4plants-fornax-template</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<!-- <FsDocsLicenseLink>https://github.com/nfdi4plants/ISADotNet/blob/developer/LICENSE</FsDocsLicenseLink>
<FsDocsReleaseNotesLink>https://github.com/nfdi4plants/ISADotNet/blob/developer/RELEASE_NOTES.md</FsDocsReleaseNotesLink> -->
</PropertyGroup>
Expand All @@ -35,5 +36,6 @@
<Pack>true</Pack>
<PackagePath>lib\$(TargetFramework)</PackagePath>
</Content>
<None Include="../../LICENSE" Pack="true" PackagePath=""/>
</ItemGroup>
</Project>

0 comments on commit a506c9c

Please sign in to comment.