From aea7a6631caa625d0cc97c03f1f134b623101f0e Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 23 Jun 2021 19:40:19 -0300 Subject: [PATCH] Reduce number of dlls on distribution with single file publish (#2211) * Enable single file publish * Set DebugType to embedded on build scripts --- .github/workflows/build.yml | 2 +- Ryujinx/Ryujinx.csproj | 5 +++++ appveyor.yml | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 474ed308a..672835d86 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -63,7 +63,7 @@ jobs: - name: Test run: dotnet test -c "${{ matrix.configuration }}" - name: Publish - run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.DOTNET_RUNTIME_IDENTIFIER }}" -o ./publish /p:Version="1.0.0" /p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" /p:ExtraDefineConstants=DISABLE_UPDATER Ryujinx + run: dotnet publish -c "${{ matrix.configuration }}" -r "${{ matrix.DOTNET_RUNTIME_IDENTIFIER }}" -o ./publish /p:Version="1.0.0" /p:DebugType=embedded /p:SourceRevisionId="${{ steps.git_short_hash.outputs.result }}" /p:ExtraDefineConstants=DISABLE_UPDATER Ryujinx if: github.event_name == 'pull_request' - name: Upload artifacts uses: actions/upload-artifact@v2 diff --git a/Ryujinx/Ryujinx.csproj b/Ryujinx/Ryujinx.csproj index 1cd9595ba..86afe71e2 100644 --- a/Ryujinx/Ryujinx.csproj +++ b/Ryujinx/Ryujinx.csproj @@ -11,6 +11,11 @@ $(DefineConstants);$(ExtraDefineConstants) + + true + true + + diff --git a/appveyor.yml b/appveyor.yml index 1bf99a049..431a5c91f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,11 +12,11 @@ build_script: - ps: >- dotnet --version - dotnet publish -c $env:config -r win-x64 /p:Version=$env:APPVEYOR_BUILD_VERSION + dotnet publish -c $env:config -r win-x64 /p:Version=$env:APPVEYOR_BUILD_VERSION /p:DebugType=embedded - dotnet publish -c $env:config -r linux-x64 /p:Version=$env:APPVEYOR_BUILD_VERSION + dotnet publish -c $env:config -r linux-x64 /p:Version=$env:APPVEYOR_BUILD_VERSION /p:DebugType=embedded - dotnet publish -c $env:config -r osx-x64 /p:Version=$env:APPVEYOR_BUILD_VERSION + dotnet publish -c $env:config -r osx-x64 /p:Version=$env:APPVEYOR_BUILD_VERSION /p:DebugType=embedded 7z a ryujinx$env:config_name$env:APPVEYOR_BUILD_VERSION-win_x64.zip $env:APPVEYOR_BUILD_FOLDER\Ryujinx\bin\$env:config\$env:appveyor_dotnet_runtime\win-x64\publish\