Skip to content

Release the Windows standalone app - #217

Merged
huacnlee merged 6 commits into
mainfrom
feat/windows-release
Sep 15, 2026
Merged

huacnlee merged 6 commits into
mainfrom
feat/windows-release

Conversation

@huacnlee

Copy link
Copy Markdown
Owner

Restores the Windows standalone app jobs that have been commented out in both workflows since #206, so the Windows zip ships with the next release.

  • ci.yml: standalone-app-windows builds, packages and exercises the archive on every pull request; windows-latest is back in the standalone backend matrix.
  • release.yml: app-windows-x86_64 is back and publish-and-pin depends on it.
  • publish-backend.sh / package-backend.py: omamail-app-windows-x86_64.zip is part of the release asset set again, including both download-and-compare passes.
  • The release workflow, backend release and publish contract tests assert all of the above.

Note: these jobs have never run on this repository's CI before — this PR is their first run, so any failure below is new information rather than a regression.

Install instructions and the GitHub Pages installer URLs follow in a separate PR.

🤖 Generated with Claude Code

huacnlee and others added 3 commits September 15, 2026 16:13
The Windows build, package and installer jobs have been in both
workflows since the standalone app arrived, commented out until the
app was ready to ship. This restores them: the CI job that builds and
exercises the archive on every pull request, the release job, the
publish step's dependency on it, the zip in the release asset set, and
the contract tests that pin all of that.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Windows job's first run found two POSIX assumptions: private file
modes have no group and other bits on NTFS, and Windows judges a file
executable by its extension rather than a bit, so the fixture backend
is named omamail.exe there and the non-executable case is a backend
without one.

The Linux job's smoke bounds allowed two seconds for QML loading, a
process spawn and a kill-wait, which a busy runner stretched past
three. The fixture floods without end, so any finite bound proves the
point; it is ten seconds now.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The test touched the directory the way the backend does, re-asserting
a mode that already holds. That moves only a ctime, and Windows reports
nothing for it, so the watch never fired there. A sibling written is a
directory event on every platform; the mode touch stays on POSIX.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@huacnlee
huacnlee force-pushed the feat/windows-release branch from 0b05ca0 to fb62483 Compare September 15, 2026 08:14
huacnlee and others added 3 commits September 15, 2026 16:25
AppDirs::discover resolves every root together, and SHGetKnownFolderPath
verifies each by default, so a profile without a Downloads folder made
every registry and cache read fail with home_missing. The contract
harness runs the backend under a redirected profile with none; a user
who removed theirs would have hit the same. The path is enough: whoever
writes there creates it or reports that it could not.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The backend's private storage check wants what the backend itself
creates: owned by the user, with a protected DACL naming nobody else.
The harness's mkdir inherited the runner's ACL, and from an elevated
token the objects belonged to Administrators, so every registry and
cache read refused with cache_unsafe_path. The fixture home is now made
private the same way, files included.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
An inheritance flag on a file's ACE makes it inherit-only, which grants
the file's own reader nothing; the harness's snapshot could not read
its sentinels. Directories and files get their own grants.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@huacnlee
huacnlee merged commit 302aa98 into main Sep 15, 2026
14 checks passed
@huacnlee
huacnlee deleted the feat/windows-release branch September 15, 2026 09:43
huacnlee added a commit that referenced this pull request Sep 15, 2026
The install commands pointed at a branch of the repository. The GitHub
Pages deploy now publishes `install.sh` and `install.ps1` next to the
page, so the commands become:

- macOS & Linux: `curl -fsSL
https://huacnlee.github.io/omamail/install.sh | sh`
- Windows (PowerShell): `irm
https://huacnlee.github.io/omamail/install.ps1 | iex`

Changes:

- `pages.yml`: stage both installers into `_site`; a change to either
redeploys the site.
- `docs/index.html`: new URLs; a Windows tab beside macOS and Linux,
opened first for Windows visitors.
- `README.md`: new URL plus the Windows command.
- `tests/test_website_install.py`: asserts the site publishes the
installers, both commands appear on the site and in the README, and no
raw-repository URL remains.

The Pages URLs only serve the installers once this is merged and the
site has deployed. The Windows command depends on #217 shipping the zip
with the next release.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
huacnlee added a commit that referenced this pull request Sep 15, 2026
`tst_settings::fileStoreReadsWritesAndWatches` failed on the Windows job
of #220 and passed on the same code in #217: the second atomic write,
issued right after the first, hit a sharing violation while the
just-written file was still held by the virus scanner or the indexer.
That is not a test problem — a user saving settings on Windows would see
the same save silently fail.

`FileStore::write` now retries the atomic replace on Windows, eight
attempts over about half a second, before reporting the error. A new
Windows-only test holds the target open without sharing for 120ms from
another thread and expects the write to land.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant