From a79c2484b39ee8417695e73dcff8c2acc21b8256 Mon Sep 17 00:00:00 2001 From: Christian Kratky Date: Fri, 14 Jun 2019 20:35:33 +0200 Subject: [PATCH] Add MQTTnet.Server build for ARM. --- Build/build.ps1 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Build/build.ps1 b/Build/build.ps1 index 7313519..ac6e5c2 100644 --- a/Build/build.ps1 +++ b/Build/build.ps1 @@ -67,6 +67,17 @@ If(Test-path $destination) {Remove-item $destination} #################################################################### +# Build MQTTnet.Server Linux-ARM +&dotnet publish ..\Source\MQTTnet.Server\MQTTnet.Server.csproj --configuration Release /p:FileVersion=$assemblyVersion /p:Version=$nugetVersion --self-contained --runtime linux-arm + +$source = "..\Source\MQTTnet.Server\bin\Release\netcoreapp2.2\linux-ARM\publish" +$destination = "..\Source\MQTTnet.Server\bin\MQTTnet.Server-Linux-ARM-v$nugetVersion.zip" +If(Test-path $destination) {Remove-item $destination} + Add-Type -assembly "system.io.compression.filesystem" +[io.compression.zipfile]::CreateFromDirectory($source, $destination) + +#################################################################### + # Build MQTTnet.Server Windows-x64 &dotnet publish ..\Source\MQTTnet.Server\MQTTnet.Server.csproj --configuration Release /p:FileVersion=$assemblyVersion /p:Version=$nugetVersion --self-contained --runtime win-x64