Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .discord/bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@types/node": "^26.6.5",
"@types/node": "^26.6.11",
"typescript": "^7.0.2"
}
}
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Thank you for contributing to LocalTelemetry!
## Prerequisites

- Windows 10/11 (64-bit x64)
- [.NET 10 SDK](https://dotnet.microsoft.com/download)
- [.NET 11 SDK](https://dotnet.microsoft.com/download)
- [Bun](https://bun.sh/) (runtime and package manager for frontend)
- [Visual Studio 2022+](https://visualstudio.microsoft.com/) or [VS Code](https://code.visualstudio.com/) with C# Dev Kit

Expand Down
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ updates:
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
- dependency-name: "Xunit.StaFact"
update-types: ["version-update:semver-major"]
groups:
dotnet-deps:
patterns:
Expand Down
4 changes: 2 additions & 2 deletions .github/release/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ Invoke-WebRequest -Uri $pawnUrl -OutFile "./publish/PawnIO_setup.exe"

# Ensure WebView2Loader.dll native interop is present in publish directory
$wv2Paths = @(
"src/LocalTelemetry.App/bin/Release/net10.0-windows10.0.19041.0/win-x64/WebView2Loader.dll",
"src/LocalTelemetry.App/bin/Debug/net10.0-windows10.0.19041.0/win-x64/WebView2Loader.dll"
"src/LocalTelemetry.App/bin/Release/net11.0-windows10.0.19041.0/win-x64/WebView2Loader.dll",
"src/LocalTelemetry.App/bin/Debug/net11.0-windows10.0.19041.0/win-x64/WebView2Loader.dll"
)
foreach ($wv2 in $wv2Paths) {
if (Test-Path $wv2) {
Expand Down
670 changes: 280 additions & 390 deletions .github/release/bun.lock

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .github/release/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"type": "module",
"devDependencies": {
"@octokit/rest": "^22.0.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/changelog": "^7.0.0",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.6",
"@semantic-release/exec": "^7.1.0",
"@semantic-release/git": "^11.0.1",
"@semantic-release/github": "^12.0.11",
"@semantic-release/release-notes-generator": "^14.1.1",
"@types/node": "^26.6.5",
"semantic-release": "^24.2.9"
"@types/node": "^26.6.11",
"semantic-release": "^26.0.1"
},
"private": true,
"name": "localtelemetry-release",
Expand All @@ -20,7 +20,7 @@
"changelog": "bun ./preview-changelog.ts"
},
"dependencies": {
"conventional-changelog-conventionalcommits": "^8.0.0"
"conventional-changelog-conventionalcommits": "^10.4.1"
},
"overrides": {
"braces": "npm:@franciscosolis/braces@^3.1.1",
Expand Down
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ jobs:
ln -s src/LocalTelemetry.App/Settings/wwwroot/node_modules ./node_modules

- name: Verify Commits
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1
with:
configFile: commitlint.config.mjs
run: |
if [ "${{ github.event_name }}" = "pull_request" ]; then
./node_modules/.bin/commitlint --from "${{ github.event.pull_request.base.sha }}" --to "${{ github.event.pull_request.head.sha }}" --config commitlint.config.mjs --verbose
else
./node_modules/.bin/commitlint --from "${{ github.event.before }}" --to "${{ github.sha }}" --config commitlint.config.mjs --verbose
fi

test-frontend:
name: Frontend Tests
Expand Down Expand Up @@ -141,9 +144,9 @@ jobs:
restore-keys: ${{ runner.os }}-nuget-

- name: Setup .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: 10.0.x
dotnet-version: 11.0.x

- name: Format Check
run: dotnet format --verify-no-changes
Expand All @@ -152,40 +155,40 @@ jobs:
run: dotnet build --configuration Debug

- name: Test Core
run: dotnet test tests/LocalTelemetry.Core.Tests/LocalTelemetry.Core.Tests.csproj --configuration Debug --no-build --verbosity minimal --collect:"XPlat Code Coverage" --results-directory TestResults/core -p:Platform=x64
run: dotnet test --project tests/LocalTelemetry.Core.Tests/LocalTelemetry.Core.Tests.csproj --configuration Debug --no-build -p:Platform=x64 -- --coverlet --coverlet-output-format cobertura --results-directory TestResults/core

- name: Upload Core Coverage
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Nicconike/LocalTelemetry
files: TestResults/core/**/coverage.cobertura.xml
files: TestResults/core/**/coverage.cobertura*.xml
flags: core
disable_search: true
plugins: noop

- name: Test Notifier
run: dotnet test tests/LocalTelemetry.Notifier.Tests/LocalTelemetry.Notifier.Tests.csproj --configuration Debug --no-build --verbosity minimal --collect:"XPlat Code Coverage" --results-directory TestResults/notifier -p:Platform=x64
run: dotnet test --project tests/LocalTelemetry.Notifier.Tests/LocalTelemetry.Notifier.Tests.csproj --configuration Debug --no-build -p:Platform=x64 -- --coverlet --coverlet-output-format cobertura --results-directory TestResults/notifier

- name: Upload Notifier Coverage
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Nicconike/LocalTelemetry
files: TestResults/notifier/**/coverage.cobertura.xml
files: TestResults/notifier/**/coverage.cobertura*.xml
flags: notifier
disable_search: true
plugins: noop

- name: Test App
run: dotnet test tests/LocalTelemetry.App.Tests/LocalTelemetry.App.Tests.csproj --configuration Debug --no-build --verbosity minimal --collect:"XPlat Code Coverage" --results-directory TestResults/app -p:Platform=x64
run: dotnet test --project tests/LocalTelemetry.App.Tests/LocalTelemetry.App.Tests.csproj --configuration Debug --no-build -p:Platform=x64 -- --coverlet --coverlet-output-format cobertura --coverlet-include "[LocalTelemetry]*" --coverlet-exclude "[LocalTelemetry.Core]*" --results-directory TestResults/app

- name: Upload App Coverage
uses: codecov/codecov-action@303a32d7a59b442fa8d48b6a1cc6825c09c847a5 # v7.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: Nicconike/LocalTelemetry
files: TestResults/app/**/coverage.cobertura.xml
files: TestResults/app/**/coverage.cobertura*.xml
flags: app
disable_search: true
plugins: noop
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Init CodeQL
uses: github/codeql-action/init@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
uses: github/codeql-action/init@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
with:
languages: "csharp"
build-mode: "manual"
Expand All @@ -50,12 +50,12 @@ jobs:
working-directory: src/LocalTelemetry.App/Settings/wwwroot

- name: Setup .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: 10.0.x
dotnet-version: 11.0.x

- name: Build Solution
run: dotnet build --configuration Debug

- name: Analyze CodeQL
uses: github/codeql-action/analyze@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
uses: github/codeql-action/analyze@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Docs

on:
push:
branches: [master]
branches: [master, develop]
paths:
- ".github/workflows/docs.yml"
- "docs/**"
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
- name: Generate App Token
id: app_token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
client-id: ${{ secrets.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand All @@ -46,9 +46,9 @@ jobs:
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0

- name: Setup .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: 10.0.x
dotnet-version: 11.0.x

- name: Install Release Dependencies
run: bun install --frozen-lockfile
Expand All @@ -59,7 +59,7 @@ jobs:
working-directory: .github/release

- name: Install Cosign
uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
uses: sigstore/cosign-installer@881c63bd87e38389154debd8331404ce7ca8a3ab # v4.1.4

- name: Install Inno Setup 7
shell: pwsh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ jobs:
persist-credentials: false

- name: Run Scorecard
uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
uses: ossf/scorecard-action@23f22cd43608bae7a1f1fa2603d7314dee9538a5 # v2.6.0
with:
results_file: results.sarif
results_format: sarif
publish_results: true

- name: Upload SARIF
uses: github/codeql-action/upload-sarif@6f2ac81f5cd81fe351a197ba0b00d91d03cd2aee # v4.39.0
uses: github/codeql-action/upload-sarif@915412ff23e8b7659517e607487dbeae018f2934 # v4.39.5
with:
sarif_file: results.sarif
12 changes: 7 additions & 5 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
java-version: 21
distribution: "zulu"

- name: Setup .NET
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
uses: actions/setup-dotnet@0f4a354dd5547a28c70b7853dbd95d5b67886e73 # v6.1.0
with:
dotnet-version: "10.0.x"
dotnet-version: "11.0.x"

- name: Setup Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
Expand Down Expand Up @@ -95,13 +95,15 @@ jobs:
/o:"nicconike" `
/d:sonar.host.url="https://sonarcloud.io" `
/d:sonar.token="$env:SONAR_TOKEN" `
/d:sonar.cs.cobertura.reportsPaths="**/TestResults/**/coverage.cobertura.xml" `
/d:sonar.cs.cobertura.reportsPaths="**/TestResults/**/coverage.cobertura*.xml" `
/d:sonar.javascript.lcov.reportPaths="tests/LocalTelemetry.App.Tests/Settings/wwwroot/coverage/lcov.info,.github/release/coverage/lcov.info" `
/d:sonar.scanner.scanAll=false `
/d:sonar.exclusions="**/wwwroot/dist/**,**/bin/**,**/obj/**"

dotnet build --configuration Debug

dotnet test --configuration Debug --no-build --verbosity minimal --collect:"XPlat Code Coverage" --results-directory TestResults -p:Platform=x64
dotnet test --project tests/LocalTelemetry.Core.Tests/LocalTelemetry.Core.Tests.csproj --configuration Debug --no-build -p:Platform=x64 -- --coverlet --coverlet-output-format cobertura --results-directory TestResults/core
dotnet test --project tests/LocalTelemetry.Notifier.Tests/LocalTelemetry.Notifier.Tests.csproj --configuration Debug --no-build -p:Platform=x64 -- --coverlet --coverlet-output-format cobertura --results-directory TestResults/notifier
dotnet test --project tests/LocalTelemetry.App.Tests/LocalTelemetry.App.Tests.csproj --configuration Debug --no-build -p:Platform=x64 -- --coverlet --coverlet-output-format cobertura --coverlet-include "[LocalTelemetry]*" --coverlet-exclude "[LocalTelemetry.Core]*" --results-directory TestResults/app

dotnet-sonarscanner end /d:sonar.token="$env:SONAR_TOKEN"
4 changes: 2 additions & 2 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
pull_request_target:
types: [opened, synchronize, reopened]
workflow_run:
workflows: ["CI", "SonarQube Analysis", "CodeQL"]
workflows: ["CI"]
types: [completed]
branches-ignore: [master]
workflow_dispatch:
Expand All @@ -38,7 +38,7 @@ jobs:
steps:
- name: Generate App Token
id: app_token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
client-id: ${{ secrets.APP_CLIENT_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</p>
<p align="center">
<a href="https://dotnet.microsoft.com/">
<img src="https://img.shields.io/badge/.NET-10.0-0DBCBF?logo=dotnet&logoColor=white&labelColor=101318" alt=".NET 10" />
<img src="https://img.shields.io/badge/.NET-11.0-0DBCBF?logo=dotnet&logoColor=white&labelColor=101318" alt=".NET 11" />
</a>
<a href="https://svelte.dev/">
<img src="https://img.shields.io/badge/Frontend-Svelte%205-0DBCBF?logo=svelte&logoColor=FF3E00&labelColor=101318" alt="Svelte 5" />
Expand Down Expand Up @@ -119,7 +119,7 @@ LocalTelemetry provides hardware monitoring in the taskbar: lightweight, native,
### Option 1: Setup Wizard Installer (Recommended)

1. Download `LocalTelemetrySetup.exe` from [**GitHub Releases**](https://github.com/Nicconike/LocalTelemetry/releases).
2. Run the installer. Setup automatically verifies the .NET 10 Desktop Runtime and installs the required PawnIO kernel sensor driver.
2. Run the installer. Setup automatically verifies the .NET 11 Desktop Runtime and installs the required PawnIO kernel sensor driver.
3. LocalTelemetry starts immediately and runs quietly in your taskbar.

### Option 2: Scoop Package Manager
Expand All @@ -132,7 +132,7 @@ scoop install localtelemetry
### Option 3: Portable ZIP

1. Ensure the required runtimes are installed:
- [**Microsoft .NET 10 Desktop Runtime (x64)**](https://aka.ms/dotnet/10.0/windowsdesktop-runtime-win-x64.exe)
- [**Microsoft .NET 11 Desktop Runtime (x64)**](https://aka.ms/dotnet/11.0/windowsdesktop-runtime-win-x64.exe)
- [**Microsoft Edge WebView2 Runtime (x64)**](https://go.microsoft.com/fwlink/p/?LinkId=2124703) *(pre-installed on Windows 11)*
2. Download `LocalTelemetry-win-x64.zip` from [**GitHub Releases**](https://github.com/Nicconike/LocalTelemetry/releases).
3. Extract and run `LocalTelemetry.exe` as Administrator.
Expand Down Expand Up @@ -194,7 +194,7 @@ gh attestation verify .\LocalTelemetry-win-x64.zip --repo Nicconike/LocalTelemet
| **Permissions** | **Administrator** *(Required for PawnIO MSR kernel driver)* |
| **System RAM** | **2 GB RAM** minimum (**4 GB RAM or higher** recommended) |
| **App Footprint** | **~15–30 MB RAM** (background taskbar monitoring) / **~40–60 MB RAM** (when Settings window is active) |
| **Runtimes** | **.NET 10 Desktop Runtime** & **WebView2** |
| **Runtimes** | **.NET 11 Desktop Runtime** & **WebView2** |

---

Expand Down
Loading
Loading