Skip to content

Commit 02c7f1e

Browse files
committed
Correct adding of the Notice.
1 parent 5ac4216 commit 02c7f1e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

publish/publish.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,16 @@ function addOpenMPLibrary($xml, $platform) {
2525
addFile $xml $source $target
2626
}
2727

28-
function addNotice($xml, $runtime) {
29-
$source = fullPath "src\Magick.Native\libraries\$runtime\Notice.txt"
30-
$target = "Notice.$runtime.txt"
28+
function addNotice($xml) {
29+
$source = fullPath "src\Magick.Native\libraries\Notice.txt"
30+
$target = "Notice.txt"
3131
addFile $xml $source $target
3232
}
3333

3434
function addNativeLibrary($xml, $platform, $runtime, $suffix) {
3535
$source = fullPath "src\Magick.Native\libraries\$runtime\Magick.Native-$suffix"
3636
$target = "runtimes\$runtime-$platform\native\Magick.Native-$suffix"
3737
addFile $xml $source $target
38-
39-
addNotice $xml $runtime
4038
}
4139

4240
function addNativeLibraries($xml, $quantumName, $platform) {
@@ -75,6 +73,7 @@ function createMagickNetNuGetPackage($quantumName, $platform, $version, $commit)
7573

7674
addMagickNetLibraries $xml $quantumName $platform
7775
addNativeLibraries $xml $quantumName $platform
76+
addNotice $xml
7877
addFile $xml "Magick.NET.targets" "build\netstandard20\$name.targets"
7978
addFile $xml "Magick.NET.targets" "buildTransitive\netstandard20\$name.targets"
8079

0 commit comments

Comments
 (0)