From 672d3355c608f6c7bcd733a818cdf4d6bf419630 Mon Sep 17 00:00:00 2001 From: Bailey Date: Sun, 24 Sep 2023 08:41:49 -0500 Subject: [PATCH] cleanup --- .github/workflows/pr-check.yml | 3 --- .github/workflows/publish-release.yaml | 10 ++++------ src/ClientUI/ClientUI.csproj | 9 ++++++--- src/Common/Database/SettingsDb.cs | 2 +- src/SharedUI/SharedUI.csproj | 2 +- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index c46343c5d..2f257d3a5 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -23,9 +23,6 @@ jobs: with: dotnet-version: ${{ matrix.dotnet }} - # - name: Install MAUI Workloads - # run: dotnet workload install maui --ignore-failed-sources - - name: Clean run: dotnet clean --configuration Debug && dotnet nuget locals all --clear diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index 3b0180041..a5991b38f 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -73,7 +73,7 @@ jobs: artifact: ${{ steps.win-ui-create-artifact.outputs.artifact }} strategy: matrix: - dotnet: [ '7.0' ] + dotnet: [ '7.0.400' ] framework: ['net7.0-windows10.0.22621.0'] os: [ 'win10-x64' ] @@ -96,20 +96,18 @@ jobs: uses: papeloto/action-zip@v1 with: files: ${{ needs.publish-windows-console-exe-dist.outputs.artifact }} - dest: /dist/${{ matrix.os }}_${{ github.event.inputs.version }}.zip + dest: /dist/console_win_${{ github.event.inputs.version }}.zip - name: Create Zip for Win UI Release Artifact uses: papeloto/action-zip@v1 with: files: ${{ needs.publish-ui-dist.outputs.artifact }} - dest: /dist/${{ matrix.os }}_${{ github.event.inputs.version }}-ui.zip + dest: /dist/ui_win_${{ github.event.inputs.version }}.zip - name: Create Release and Upload Artifacts uses: ncipollo/release-action@v1 with: - artifacts: - - "${{ github.workspace }}/dist/${{ matrix.os }}_${{ github.event.inputs.version }}.zip" - - "${{ github.workspace }}/dist/${{ matrix.os }}_${{ github.event.inputs.version }}-ui.zip" + artifacts: "${{ github.workspace }}/dist/console_win_${{ github.event.inputs.version }}.zip,${{ github.workspace }}/dist/ui_win_${{ github.event.inputs.version }}.zip" token: ${{ secrets.GITHUB_TOKEN }} tag: v${{ github.event.inputs.version }} allowUpdates: true diff --git a/src/ClientUI/ClientUI.csproj b/src/ClientUI/ClientUI.csproj index 4e206d7a6..86e56edc4 100644 --- a/src/ClientUI/ClientUI.csproj +++ b/src/ClientUI/ClientUI.csproj @@ -2,7 +2,7 @@ - $(TargetFrameworks);net7.0-windows10.0.22621.0 + $(TargetFrameworks);net7.0-windows10.0.22621.0 Exe @@ -53,7 +53,7 @@ - + @@ -62,7 +62,10 @@ - + + + NU1603,NETSDK1023 + diff --git a/src/Common/Database/SettingsDb.cs b/src/Common/Database/SettingsDb.cs index 5df1785b4..36a5d89d8 100644 --- a/src/Common/Database/SettingsDb.cs +++ b/src/Common/Database/SettingsDb.cs @@ -39,7 +39,7 @@ private void Init() { var settings = _db.GetItem("1"); } - catch (KeyNotFoundException k) + catch (KeyNotFoundException) { var success = _db.InsertItem("1", _defaultSettings); if (!success) diff --git a/src/SharedUI/SharedUI.csproj b/src/SharedUI/SharedUI.csproj index 88330ea8e..e12c09457 100644 --- a/src/SharedUI/SharedUI.csproj +++ b/src/SharedUI/SharedUI.csproj @@ -1,4 +1,4 @@ - + net7.0