diff --git a/CLAUDE.md b/CLAUDE.md index c0ce52c..f9ded43 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -16,7 +16,7 @@ syncing through the user's own Firestore. English and Rioplatense Spanish. GPL-3 $env:DOTNET_ROOT = "$env:LOCALAPPDATA\Microsoft\dotnet" # if the SDK isn't on PATH dotnet test --project Queueify.Tests # unit tests, the TDD loop tools\firestore-emulator.ps1 -Background; $env:QUEUEIFY_FIRESTORE_EMULATOR = '127.0.0.1:8080' -tools\package.ps1 # dist\Queueify\Queueify.exe + versioned copy +tools\package.ps1 # dist\Queueify\Queueify.exe + versioned copy (AOT, ~5 min) powershell -ExecutionPolicy Bypass -File tests\ui\Queueify.UiTests.ps1 -Exe dist\Queueify\Queueify.exe tools\release.ps1 -Preview # next changelog ``` @@ -38,5 +38,7 @@ tools\release.ps1 -Preview # next changelog - The dev PC runs Windows 11 IoT Enterprise LTSC (no winget, no Microsoft Store). Git and the GitHub CLI are portable installs in `%LOCALAPPDATA%\Programs`. +- Native AOT needs the C++ build tools (installed: VS 2022 Build Tools, VCTools workload); package.ps1 + puts vswhere on PATH for it. - Windows PowerShell 5.1 reads `.ps1` files as ANSI unless they have a UTF-8 BOM: save scripts with non-ASCII text with a BOM. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 15af942..6caa541 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -7,6 +7,8 @@ Thanks for helping. Queueify aims for a small, correct and boring codebase. Read - Windows 10 2004+ or Windows 11, x64 - [.NET 10 SDK](https://dotnet.microsoft.com/download) (`global.json` pins the feature band) +- For `tools\package.ps1`: Visual Studio's C++ build tools (the *Desktop development with C++* workload, or + Build Tools with `Microsoft.VisualStudio.Workload.VCTools`): the app is compiled ahead of time to native code - Git, with the repository's hooks: `git config core.hooksPath .githooks` - Optional, for the sync tests: Java 21+ (the Firestore emulator jar is downloaded on first use) @@ -16,7 +18,7 @@ Thanks for helping. Queueify aims for a small, correct and boring codebase. Read | --- | --- | | `dotnet test --project Queueify.Tests` | Unit tests (the TDD loop) | | `tools\firestore-emulator.ps1 -Background` then `$env:QUEUEIFY_FIRESTORE_EMULATOR = '127.0.0.1:8080'` | Runs the sync tests too instead of skipping them | -| `tools\package.ps1` | Builds the portable app: one trimmed `dist\Queueify\Queueify.exe`, plus a versioned copy for the release | +| `tools\package.ps1` | Builds the portable app (about 5 minutes): one `dist\Queueify\Queueify.exe`, the starter with the app appended, plus a versioned copy for the release | | `tests\ui\Queueify.UiTests.ps1 -Exe dist\Queueify\Queueify.exe` | UI tests through Windows UI Automation | | `tests\ui\Queueify.SyncUiTests.ps1 -Exe dist\Queueify\Queueify.exe` | Sync UI test (needs the emulator) | | `tests\tools\Release.Tests.ps1` | Tests for the release tool | @@ -24,7 +26,7 @@ Thanks for helping. Queueify aims for a small, correct and boring codebase. Read Run the PowerShell scripts with `powershell -ExecutionPolicy Bypass -File