From e297a1ebc211aea24d374734289fefd2282a45f5 Mon Sep 17 00:00:00 2001 From: Izakbar Date: Thu, 13 Feb 2025 09:53:47 +0000 Subject: [PATCH] Linux build use self-contained true, windows build use self-contained false --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d8769cd..8243106 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,8 @@ jobs: fail-fast: false matrix: platform: - - { name: Linux, os: windows-2022 } - - { name: Windows, os: windows-2022 } + - { name: Linux, os: windows-2022, self_contained: true } + - { name: Windows, os: windows-2022, self_contained: false } dotnet: - { name: .NET 8, version: '8.0.x' } @@ -31,7 +31,7 @@ jobs: run: | git log --pretty=format:'%d %s' ${GITHUB_REF} | perl -pe 's| \(.*tag: v(\d+.\d+.\d+(-preview\d{3})?)(, .*?)*\)|\n## \1\n|g' # Build everything - dotnet publish src\\Eve-O-Preview\\Eve-O-Preview.csproj -c Release -o "Eve-O-Preview-${{ github.event.release.tag_name }}-${{ matrix.platform.name }}" -p:EVEOTARGET="${{matrix.platform.name}}" -p:AssemblyVersion="${{ github.event.release.tag_name }}" + dotnet publish src\\Eve-O-Preview\\Eve-O-Preview.csproj -c Release -o "Eve-O-Preview-${{ github.event.release.tag_name }}-${{ matrix.platform.name }}" -p:EVEOTARGET="${{matrix.platform.name}}" -p:AssemblyVersion="${{ github.event.release.tag_name }}" --self-contained ${{matrix.platform.self_contained}} - name: Create archive run: | Compress-Archive -Path "Eve-O-Preview-${{ github.event.release.tag_name }}-${{ matrix.platform.name }}\\*" -Destination "Release-${{ github.event.release.tag_name }}-${{ matrix.platform.name }}.zip"