mirror of
https://github.com/Corsinvest/cv4pve-pepper.git
synced 2025-02-12 10:01:53 +00:00
Improve code
This commit is contained in:
parent
44b3fba99d
commit
c498d40ec8
2 changed files with 9 additions and 7 deletions
|
@ -1,8 +1,8 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<Version>1.2.0</Version>
|
||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
||||
<Version>1.2.1</Version>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<AssemblyName>cv4pve-pepper</AssemblyName>
|
||||
<Company>Corsinvest Srl</Company>
|
||||
<Authors>Daniele Corsini</Authors>
|
||||
|
@ -19,6 +19,6 @@
|
|||
<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" />
|
||||
</ItemGroup>
|
||||
</Project>
|
|
@ -1,4 +1,4 @@
|
|||
# This file is part of the cv4pve-autosnap https://github.com/Corsinvest/cv4pve-pepper,
|
||||
# This file is part of the cv4pve-pepper https://github.com/Corsinvest/cv4pve-pepper,
|
||||
#
|
||||
# This source file is available under two different licenses:
|
||||
# - GNU General Public License version 3 (GPLv3)
|
||||
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue