From 6a81b272ec3526b9a17378dc606a9e87e75de8e1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 15:56:21 +0000 Subject: [PATCH 1/5] Initial plan From 338185938bd7cf6d4fa0063dd02c2f334129bf83 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 15:58:15 +0000 Subject: [PATCH 2/5] Add GitHub Actions workflow for building Windows binary Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com> --- .github/workflows/build-windows.yml | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build-windows.yml diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml new file mode 100644 index 0000000..a6980ab --- /dev/null +++ b/.github/workflows/build-windows.yml @@ -0,0 +1,38 @@ +name: Build Windows Binary + +on: + push: + branches: [ master, main ] + pull_request: + branches: [ master, main ] + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Publish + run: dotnet publish --configuration Release --no-build --output ./publish + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: FolderSnippets-Windows + path: ./publish/FolderSnippets.exe + retention-days: 1 + overwrite: true From 4b8336644ca3821576497d4dc49ce8cb73dad287 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 15:59:05 +0000 Subject: [PATCH 3/5] Fix workflow to include runtime identifier and use wildcard for exe path Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com> --- .github/workflows/build-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index a6980ab..dcc8b95 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -27,12 +27,12 @@ jobs: run: dotnet build --configuration Release --no-restore - name: Publish - run: dotnet publish --configuration Release --no-build --output ./publish + run: dotnet publish --configuration Release --no-build --runtime win-x64 --output ./publish - name: Upload artifact uses: actions/upload-artifact@v4 with: name: FolderSnippets-Windows - path: ./publish/FolderSnippets.exe + path: ./publish/*.exe retention-days: 1 overwrite: true From 253b16d273317c62d0aced48c9e94a8c0701cda6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 15:59:59 +0000 Subject: [PATCH 4/5] Add self-contained flag and use specific exe path in workflow Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com> --- .github/workflows/build-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index dcc8b95..3798317 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -27,12 +27,12 @@ jobs: run: dotnet build --configuration Release --no-restore - name: Publish - run: dotnet publish --configuration Release --no-build --runtime win-x64 --output ./publish + run: dotnet publish --configuration Release --no-build --runtime win-x64 --self-contained --output ./publish - name: Upload artifact uses: actions/upload-artifact@v4 with: name: FolderSnippets-Windows - path: ./publish/*.exe + path: ./publish/FolderSnippets.exe retention-days: 1 overwrite: true From a992d16e7c7e87c3567bece365b18cf211b25eeb Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 16:01:31 +0000 Subject: [PATCH 5/5] Add explicit permissions to workflow for security Co-authored-by: MrSimonC <3033044+MrSimonC@users.noreply.github.com> --- .github/workflows/build-windows.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 3798317..2fe6e1f 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -10,6 +10,8 @@ on: jobs: build: runs-on: windows-latest + permissions: + contents: read steps: - name: Checkout code