Skip to content

Commit

Permalink
Another attempt to correct publishing the package.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Mar 21, 2022
1 parent edd8931 commit 972ae03
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions publish/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,18 @@ function addNativeLibraries($xml, $quantumName, $platform) {

addNativeLibrary $xml $platform "win" "$quantumName-$platform.dll"

if ($platform -ne "x86") {
addNativeLibrary $xml $platform "linux" "$quantumName-$platform.dll.so"
}

if ($platform -eq "x64") {
addNativeLibrary $xml $platform "linux-musl" "$quantumName-$platform.dll.so"
addNativeLibrary $xml $platform "osx" "$quantumName-$platform.dll.dylib"

if ($quantumName.EndsWith("-OpenMP")) {
if ($quantumName.EndsWith("-OpenMP")) {
if ($platform -eq "x64") {
addOpenMPLibrary $xml
addNativeLibrary $xml $platform "linux" "$quantumName-$platform.dll.so"
}
} else {
if ($platform -ne "x86") {
addNativeLibrary $xml $platform "linux" "$quantumName-$platform.dll.so"
if ($platform -eq "x64") {
addNativeLibrary $xml $platform "linux-musl" "$quantumName-$platform.dll.so"
addNativeLibrary $xml $platform "osx" "$quantumName-$platform.dll.dylib"
}
}
}
}
Expand Down

0 comments on commit 972ae03

Please sign in to comment.