Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
franklupo committed Apr 24, 2020
1 parent 5089e6d commit aed4996
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Corsinvest.ProxmoxVE.Cli/Corsinvest.ProxmoxVE.Cli.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<Version>1.5.0</Version>
<TargetFramework>netcoreapp3.0</TargetFramework>
<Version>1.5.1</Version>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>cv4pve-cli</AssemblyName>
<Company>Corsinvest Srl</Company>
<Authors>Daniele Corsini</Authors>
Expand All @@ -19,7 +19,7 @@
<TrimmerRootAssembly Include="System.Net.WebClient" />

<!-- <ProjectReference Include="..\..\..\cv4pve-api-dotnet\src\Corsinvest.ProxmoxVE.Api.Shell\Corsinvest.ProxmoxVE.Api.Shell.csproj" /> -->
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Shell" Version="2.3.0" />
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Shell" Version="2.3.1" />
<PackageReference Include="ReadLine" Version="2.0.1" />
</ItemGroup>
</Project>
8 changes: 5 additions & 3 deletions src/Corsinvest.ProxmoxVE.Cli/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,17 @@ Write-Output "
== Build System
========================================================="

Remove-Item -Path ".\Bin\Release\netcoreapp3.0\" -Recurse -Force
$pathNet = "Bin\Release\netcoreapp3.1"

Remove-Item -Path ".\$pathNet" -Recurse -Force

$rids = @("linux-x64", "linux-arm", "linux-arm64", "osx-x64", "win-x86", "win-x64", "win-arm", "win-arm64")
foreach ($rid in $rids) {
dotnet publish -r $rid -c Release /p:PublishSingleFile=true /p:PublishTrimmed=true
$path = "bin\Release\netcoreapp3.0\$rid\publish\"
$path = "$pathNet\$rid\publish\"

$fileName = Get-ChildItem $path -Exclude *.pdb -name
$fileDest = "bin\Release\netcoreapp3.0\$fileName-$rid.zip"
$fileDest = "$pathNet\$fileName-$rid.zip"
Remove-Item $fileDest -ErrorAction SilentlyContinue
Compress-Archive $path\$fileName $fileDest
}

0 comments on commit aed4996

Please sign in to comment.