From 732d539ddcebde308808131f3fc08b13697034a1 Mon Sep 17 00:00:00 2001 From: "daniele.corsini@corsinvest.it" Date: Thu, 2 May 2024 12:12:01 +0200 Subject: [PATCH] Improve tools --- Initialize-Tools.ps1 | 4 +++ src/Corsinvest.ProxmoxVE.Pepper/build.ps1 | 32 ----------------------- 2 files changed, 4 insertions(+), 32 deletions(-) create mode 100644 Initialize-Tools.ps1 delete mode 100644 src/Corsinvest.ProxmoxVE.Pepper/build.ps1 diff --git a/Initialize-Tools.ps1 b/Initialize-Tools.ps1 new file mode 100644 index 0000000..0e6e842 --- /dev/null +++ b/Initialize-Tools.ps1 @@ -0,0 +1,4 @@ +# SPDX-FileCopyrightText: Copyright Corsinvest Srl +# SPDX-License-Identifier: GPL-3.0-only + +Import-Module ..\..\..\cmds\Corsinvest.Dotnet.Develop.psm1 -Verbose -Force \ No newline at end of file diff --git a/src/Corsinvest.ProxmoxVE.Pepper/build.ps1 b/src/Corsinvest.ProxmoxVE.Pepper/build.ps1 deleted file mode 100644 index 43f48e9..0000000 --- a/src/Corsinvest.ProxmoxVE.Pepper/build.ps1 +++ /dev/null @@ -1,32 +0,0 @@ -# SPDX-License-Identifier: GPL-3.0-only -# SPDX-FileCopyrightText: 2019 Copyright Corsinvest Srl - -[System.Console]::Clear(); - -Write-Output " - ______ _ __ - / ____/___ __________(_)___ _ _____ _____/ /_ - / / / __ \/ ___/ ___/ / __ \ | / / _ \/ ___/ __/ - / /___/ /_/ / / (__ ) / / / / |/ / __(__ ) /_ - \____/\____/_/ /____/_/_/ /_/|___/\___/____/\__/ - - (Made in Italy) - - ========================================================= - == Build System - =========================================================" - -$pathNet = "Bin\Release\net6.0" - -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 --self-contained #/p:EnableCompressionInSingleFile=true - $path = "$pathNet\$rid\publish\" - - $fileName = Get-ChildItem $path -Exclude *.pdb -name - $fileDest = "$pathNet\$fileName-$rid.zip" - Remove-Item $fileDest -ErrorAction SilentlyContinue - Compress-Archive $path\$fileName $fileDest -} \ No newline at end of file