Skip to content

Commit

Permalink
Added SEALNet-multi.nuspec.in
Browse files Browse the repository at this point in the history
  • Loading branch information
kimlaine committed Apr 29, 2020
1 parent ce852c4 commit 9fd5b13
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ thirdparty/googletest/*
!thirdparty/googletest/CMakeLists.txt
dotnet/nuget/nuget.exe
dotnet/nuget/SEALNet.nuspec
dotnet/nuget/SEALNet-multi.nuspec
dotnet/nuget/SEALNet.targets

## Ignore Visual Studio temporary files, build results, and
Expand Down
34 changes: 34 additions & 0 deletions dotnet/nuget/SEALNet-multi.nuspec.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>

<!-- Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT license. -->

<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>Microsoft.Research.SEALNet</id>
<version>@SEAL_VERSION@</version>
<title>Microsoft SEAL</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<projectUrl>http://sealcrypto.org</projectUrl>
<license type="file">LICENSE</license>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Microsoft SEAL is an easy-to-use and powerful open source homomorphic encryption library, developed by researchers in the Cryptography and Privacy Research Group at Microsoft Research. Microsoft SEAL is licensed under the MIT license.</description>
<releaseNotes>https://GitHub.com/Microsoft/SEAL</releaseNotes>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>c# crypto cryptography homomorphic encryption</tags>
<dependencies>
<group targetFramework=".NETStandard2.0" />
</dependencies>
</metadata>
<files>
<file src="SEALNet.targets" target="build/Microsoft.Research.SEALNet.targets" />
<file src="$NUGET_WINDOWS_SEAL_C_PATH$" target="runtimes/win10-x64" />
<file src="$NUGET_LINUX_SEAL_C_PATH$" target="runtimes/linux-x64" />
<file src="$NUGET_MACOS_SEAL_C_PATH$" target="runtimes/macos-x64" />
<file src="$NUGET_ANDROIDARM64_SEAL_C_PATH$" target="runtimes/android-arm64" />
<file src="$NUGET_ANDROIDX64_SEAL_C_PATH$" target="runtimes/android-x64" />
<file src="../../lib/dotnet/$configuration$/netstandard2.0/SEALNet.dll" target="lib/netstandard2.0/" />
<file src="../../LICENSE" target="LICENSE" />
</files>
</package>
4 changes: 2 additions & 2 deletions pipelines/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ steps:
displayName: 'Build NuGet Package'
inputs:
command: 'pack'
packagesToPack: '$(Build.ArtifactStagingDirectory)\windows-drop\dotnet\nuget\*.nuspec'
packagesToPack: '$(Build.ArtifactStagingDirectory)\windows-drop\dotnet\nuget\SEALNet-multi.nuspec'
packDestination: '$(Build.ArtifactStagingDirectory)\windows-drop\dotnet\nuget\Release'
buildProperties: 'Configuration=Release;NUGET_WINDOWS_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\sealc.dll;NUGET_LINUX_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc.so;NUGET_MACOS_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc.dylib;NUGET_ANDROIDARM64_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\arm64-v8a\libsealc.so;NUGET_ANDROIDX64_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\x86_64\libsealc.so'
buildProperties: 'Configuration=Release;NUGET_WINDOWS_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\x64\Release\sealc.dll;NUGET_LINUX_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc.so;NUGET_MACOS_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\libsealc.dylib;NUGET_ANDROIDARM64_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\arm64-v8a\libsealc.so;NUGET_ANDROIDX64_SEAL_C_PATH=$(Build.ArtifactStagingDirectory)\windows-drop\lib\x86_64\libsealc.so'

- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: drop'
Expand Down
2 changes: 1 addition & 1 deletion pipelines/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ steps:
displayName: 'Copy NuSpec File to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: '$(Build.SourcesDirectory)\dotnet\nuget\'
Contents: 'SEALNet.nuspec'
Contents: 'SEALNet-multi.nuspec'
TargetFolder: '$(Build.ArtifactStagingDirectory)\dotnet\nuget\'

- task: CopyFiles@2
Expand Down

0 comments on commit 9fd5b13

Please sign in to comment.