You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by mi...@apache.org on 2019/06/25 11:47:48 UTC

[activemq-nms-api] branch master updated: NO-JIRA Update package script to include nuget

This is an automated email from the ASF dual-hosted git repository.

michaelpearce pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/activemq-nms-api.git


The following commit(s) were added to refs/heads/master by this push:
     new f13bf32  NO-JIRA Update package script to include nuget
f13bf32 is described below

commit f13bf32e9db96e9c8f61f30a2d03edcb6a58c8b1
Author: Michael André Pearce <mi...@apache.org>
AuthorDate: Tue Jun 25 12:47:44 2019 +0100

    NO-JIRA Update package script to include nuget
---
 package.ps1 | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package.ps1 b/package.ps1
index 49db3d0..4059091 100644
--- a/package.ps1
+++ b/package.ps1
@@ -14,7 +14,7 @@
 # limitations under the License.
 
 $pkgname = "Apache.NMS"
-$pkgver = "1.8-SNAPSHOT"
+$pkgver = "1.8.0"
 $frameworks = "net35", "net40", "netstandard2.0"
 
 write-progress "Creating package directory." "Initializing..."
@@ -38,6 +38,10 @@ if (test-path build) {
     foreach ($framework in $frameworks) {
         Compress-Archive -Path $framework -Update -DestinationPath $zipfile
     }
+    
+    $nupkg = "$pkgname.$pkgver.nupkg"
+    $nupkgdestination = "$pkgdir\$nupkg"
+    Copy-Item -Path $nupkg -Destination $nupkgdestination
 
     Pop-Location
 }
@@ -67,4 +71,4 @@ $zipfile = "$pkgdir\$pkgname-$pkgver-docs.zip"
 
 Compress-Archive -Path "docs\_site\*", "LICENSE.txt", "NOTICE.txt" -Update -DestinationPath $zipfile
 
-write-progress -Completed "Packaging" "Complete."
\ No newline at end of file
+write-progress -Completed "Packaging" "Complete."