Compare commits

..

2 Commits

Author SHA1 Message Date
f50603205f Update publish.ps1 2026-02-01 03:31:47 +01:00
8707031fa2 Update BrikPackager.csproj 2026-02-01 03:30:51 +01:00
2 changed files with 15 additions and 11 deletions

View File

@ -12,7 +12,16 @@
<PackAsTool>false</PackAsTool>
</PropertyGroup>
<PropertyGroup>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
<TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);IncludeP2PAssets</TargetsForTfmSpecificContentInPackage>
</PropertyGroup>
<Target Name="IncludeP2PAssets">
<ItemGroup>
<BuildOutputInPackage Include="$(OutputPath)*.dll" Exclude="$(OutputPath)$(AssemblyName).dll" />
</ItemGroup>
</Target>
<ItemGroup>
<PackageReference Include="SharpCompress" Version="0.44.4" />
</ItemGroup>

View File

@ -1,17 +1,12 @@
Clear-Host
$version = "0.0.1"
Write-Host "`r`n[Task 1/5] Cleaning project..." -ForegroundColor Magenta
Write-Host "`r`n[Task 1/3] Cleaning and Building (Release)..." -ForegroundColor Magenta
dotnet clean -c Release
dotnet build -c Release /p:Version=$version
Write-Host "`r`n[Task 2/5] Building project..." -ForegroundColor Magenta
dotnet build -c Release
Write-Host "`r`n[Task 2/3] Packing project..." -ForegroundColor Magenta
dotnet pack -c Release --no-build /p:PackageVersion=$version
Write-Host "`r`n[Task 3/5] Restoring project..." -ForegroundColor Magenta
dotnet restore
Write-Host "`r`n[Task 4/5] Packing project..." -ForegroundColor Magenta
dotnet pack --version $version -c Release
Write-Host "`r`n[Task 5/5] Publishing project..." -ForegroundColor Magenta
dotnet nuget push --source AzuresBrikGitea "bin\Debug\BrikPackager.$version.nupkg" --skip-duplicate
Write-Host "`r`n[Task 3/3] Publishing project..." -ForegroundColor Magenta
dotnet nuget push "bin\Release\BrikPackager.$version.nupkg" --source AzuresBrikGitea --skip-duplicate