Skip to content

Commit

Permalink
Create powershell script to build package
Browse files Browse the repository at this point in the history
  • Loading branch information
jjxtra committed Jul 24, 2018
1 parent 8a5287c commit 526e304
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
.vs/
bin/
obj/
package/
packages/
*.suo
*.cachefile
Expand Down
8 changes: 8 additions & 0 deletions CreatePackage.ps1
@@ -0,0 +1,8 @@
param([Parameter(Mandatory=$true)] [String]$version)

rm -r "./package"
dotnet publish IPBan.sln -f netcoreapp2.1 -o package/linux-x64 -c Release -r linux-x64
dotnet publish IPBan.sln -f netcoreapp2.1 -o package/win-x86 -c Release -r win-x86
Compress-Archive -Path ./package/linux-x64/* -DestinationPath ./package/IPBan-Linux-x64.zip
Compress-Archive -Path ./package/win-x86/* -DestinationPath ./package/IPBan-Windows-x86.zip
Compress-Archive -Path ./package/IPBan-Linux-x64.zip,./package/IPBan-Windows-x86.zip -DestinationPath ./package/IPBan_$version.zip -CompressionLevel NoCompression

0 comments on commit 526e304

Please sign in to comment.