diff --git a/.github/workflows/qodana-scan-pr.yml b/.github/workflows/qodana-scan-pr.yml index 5c247122f..481297118 100644 --- a/.github/workflows/qodana-scan-pr.yml +++ b/.github/workflows/qodana-scan-pr.yml @@ -3,8 +3,6 @@ on: pull_request: branches: - main - - preview - - stable paths-ignore: - '**.md' - 'Hi3Helper.Core/Lang/**.json' @@ -21,13 +19,11 @@ jobs: pull-requests: write checks: write security-events: write - strategy: matrix: configuration: [Release] # No need to distribute Debug builds platform: [x64] framework: [net9.0-windows10.0.22621.0] - env: Configuration: ${{ matrix.configuration }} Platform: ${{ matrix.platform }} @@ -45,7 +41,6 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit fetch-depth: 0 # a full history is required for pull request analysis submodules: recursive # many many submodules - - name: Install .NET uses: actions/setup-dotnet@v4 with: @@ -62,7 +57,6 @@ jobs: pr-mode: true env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below - - uses: github/codeql-action/upload-sarif@v3 if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }} with: diff --git a/.github/workflows/qodana-scan.yml b/.github/workflows/qodana-scan.yml index 6910a91fc..2037d01f5 100644 --- a/.github/workflows/qodana-scan.yml +++ b/.github/workflows/qodana-scan.yml @@ -3,9 +3,10 @@ on: workflow_dispatch: schedule: - cron: '0 0 * * 0,3,5' # At 00:00 on Sunday, Wednesday, and Friday. -# pull_request: -# branches: -# - main + pull_request: + branches: + - preview + - stable jobs: qodana: @@ -15,7 +16,6 @@ jobs: configuration: [Release] # No need to distribute Debug builds platform: [x64] framework: [net9.0-windows10.0.22621.0] - env: Configuration: ${{ matrix.configuration }} Platform: ${{ matrix.platform }} @@ -23,23 +23,19 @@ jobs: DOTNET_VERSION: '9.x' DOTNET_QUALITY: 'ga' NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages - permissions: actions: read contents: write pull-requests: write checks: write security-events: write - steps: - uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit submodules: recursive # many many submodules - # - name: Install winget # uses: Cyberboss/install-winget@v1 - # - name: Install Qodana CLI # uses: crazy-max/ghaction-chocolatey@v3 # with: @@ -50,7 +46,6 @@ jobs: # Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1" # refreshenv # qodana --version - - name: Install .NET uses: actions/setup-dotnet@v4 with: @@ -58,13 +53,11 @@ jobs: dotnet-quality: ${{ env.DOTNET_QUALITY }} cache: true cache-dependency-path: CollapseLauncher/packages.lock.json - # - name: Qodana Scan # run: | # Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1" # refreshenv # qodana scan --ide QDNET-EAP -o ${{ runner.temp }}\qodana\results --cache-dir ${{ runner.temp }}\qodana\cache - - name: Qodana Scan uses: JetBrains/qodana-action@v2024.3.3 continue-on-error: true @@ -73,9 +66,8 @@ jobs: pr-mode: false env: QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} - - uses: github/codeql-action/upload-sarif@v3 if: always() continue-on-error: true with: - sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json \ No newline at end of file + sarif_file: ${{ runner.temp }}/qodana/results/qodana.sarif.json diff --git a/.gitignore b/.gitignore index b2fcd1f69..cef97bf38 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,8 @@ packages/* CollapseLauncher/Deps/* +CollapseLauncher/StaticLib/*.lib +CollapseLauncher/StaticLib/**/*.lib CollapseLauncher/Invoker/* **/Generated Files/** *.psd diff --git a/CollapseLauncher/App.xaml b/CollapseLauncher/App.xaml index ec4f953ec..6072c813d 100644 --- a/CollapseLauncher/App.xaml +++ b/CollapseLauncher/App.xaml @@ -2,10 +2,9 @@ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:animatedvisuals="using:Microsoft.UI.Xaml.Controls.AnimatedVisuals" + xmlns:controls="using:Microsoft.UI.Xaml.Controls" xmlns:conv="using:CollapseLauncher.Pages" - xmlns:interactions="using:Microsoft.Xaml.Interactions.Core" xmlns:interactivity="using:Microsoft.Xaml.Interactivity" - xmlns:controls="using:Microsoft.UI.Xaml.Controls" xmlns:primitives="using:Microsoft.UI.Xaml.Controls.Primitives" xmlns:ui="using:Windows.UI"> @@ -2190,13 +2189,13 @@ - - - + + + - - - + + + - - -