Repository navigation
feat: download Queueify as a 21 MB exe compiled to native code - #2
Merged
Merged
Conversation
DisplayMemberPath looks the property up at run time, which Native AOT
can't do. The country and text recognition lists use {x:Bind} templates,
and their items read as their names for screen readers.
The highlighted lines on a photo were plain shapes that only took a mouse click. They are buttons now: Tab reaches them, Enter or Space picks one, and screen readers read the line. They look as before. A UI test pastes the test photo and picks a line.
The app is compiled ahead of time (Native AOT), so no .NET runtime ships with it, and the published folder is appended to a small starter exe, compressed with Brotli: 21 MB, down from 35 MB in 1.2.0 and 93 MB in 1.1.0. The starter unpacks it once per version into %LOCALAPPDATA%\Queueify\app, starts it and removes older versions. - WinUI reads lists only when their WinRT interop code was generated at build time: every ItemsSource gets a List<object> made in the app, and unsafe code is allowed so the generator doesn't skip lists - the app knows the exe the user opened (QUEUEIFY_EXE), so portable Data next to it still works and a taskbar pin starts the download, not the unpacked copy the next version removes - the starter loads its own imports from System32 only - package.ps1 checks the start under another name, where the data goes, the taskbar pin and the starter's dll loading; the UI tests run the download itself with a scratch LOCALAPPDATA ADR-0008 records the measurements and the alternatives.
- the archive is checked against its SHA-256 id while it unpacks: Brotli has no checksum, and a damaged download would have installed a broken version for good; it now says "damaged, download it again" - a complete folder is never deleted: starting the exe twice on the first run no longer breaks the copy that's already running - clean-up leaves another version's unpacking in progress alone - the starter catches every error, words them itself (no resource keys), and a clean-up failure no longer reads as a failed start - the app's working folder is its own, not the download's - QUEUEIFY_EXE must name an existing exe and is cleared after reading, so programs Queueify opens don't inherit it; restarts go through the starter
The archive's hash is checked before anything is written, so any damage gets "download it again". Clean-up also removes this version's own copies abandoned more than an hour ago.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The smallest portable single exe that needs nothing installed: the app is compiled ahead of time (Native AOT) and appended to a small starter exe, Brotli-compressed. ~21 MB, down from 35 MB (1.2.0) and 93 MB (1.1.0). The starter unpacks it once per version into
%LOCALAPPDATA%\Queueify\appand starts it. Measurements and alternatives: ADR-0008.Also: the lines of a magazine photo are buttons now (keyboard and screen readers), and the settings lists use compiled bindings.
How it was tested
dotnet test: 211 passed with the Firestore emulator, 0 skippeddist\Queueify\Queueify.exe, the starter): 0 failuresReview