Repository navigation
V2.10.2
V2.10.2
New Release Auto Generated Release Notes
Here are all commits since the last version:
fix(extraction): stop reporting an empty extraction as a success
An extraction that wrote no assets was indistinguishable from one that wrote
thousands: the result carried only a count, so a package whose layout we failed
to parse produced "Extraction complete", a positive sound and an empty folder.
That is how the repacked-package bug stayed invisible for so long.
The count alone cannot carry this, because zero is the correct answer in three
cases: a caller filter that matches nothing, an output folder that is already up
to date, and ExtractInfoAsync, which only inspects. UnityPackageExtractionResult
now carries an explicit UnityPackageExtractionOutcome plus a readable detail, and
the UI branches on that instead of on the number.
Two counters were missing to tell those cases apart:
- _assetsAlreadyUpToDate, so re-extracting the same package is not an alarm.
- _knownComponentsSeen, because the entry loop creates an asset state before it
checks whether the component name is one we know. On a package we cannot parse
the state map is therefore non-empty, and testing it would have missed exactly
the case this guard is for.
An unexplained empty run now logs at warning level instead of information.
fix(stats): stop counting a run that extracted nothing as a completed package
"Packages completed" grew on every run that returned without throwing, so a
package whose layout we failed to parse still moved the counter, wrote itself
into ExtractedUnitypackages and reset "Last extraction" to a moment at which
nothing had been extracted. The number was therefore a count of attempts wearing
the label of a count of successes.
The count alone cannot decide this, which is why the guard added in 8412cd4
introduced UnityPackageExtractionOutcome. CountsAsCompletedPackage now reads
that outcome, and both the persisted totals in UpdateExtractionStatistics and
the live session counter in OnExtractionOverviewPackageCompleted branch on it.
Having one predicate matters: the live overview starts from the persisted total
as its baseline, so if the two rules disagreed the number would jump the next
time a session began.
The predicate checks outcome and count together. Outcome Extracted promises at
least one written asset, so the two disagreeing would be a service bug, and the
counter should not grow on that either way.
TotalFilesExtracted keeps its own behaviour, it was already guarded and only
ever grew by a real asset count.
fix(extraction): stop leaving an empty output folder behind on a failed run
A package we cannot read created its output folder and left it there empty. On
disk that is indistinguishable from a package which genuinely held nothing, and
it was the visible half of the same problem the outcome guard fixed for the
message: the run looked finished and the folder said otherwise.
EmptyOutputDirectoryScope takes the folder back when the run created it and left
it without a single file. It is declared right after the directory exists and
disposed on every exit path, so a failure that throws is covered as well as one
that returns quietly. Two guards decide against deleting: a directory that
already existed belongs to the caller and is never touched, empty or not, and a
single file anywhere below it cancels the removal. Only files count, because
organising by categories can leave empty category folders and those belong to
the same run.
The scope alone changed nothing, which only showed up when running it: the UI
resolved the output path by creating it, so by the time the service looked, the
directory always appeared pre-existing and the guard correctly refused. Callers
of ResolveOutputDirectory only pass the path along, so it no longer creates
anything and leaves that to the service, which does it as its first step.
chore(release): 2.10.2
Ships the three extraction and stats fixes that have been sitting on main
since 2026-08-20 (8412cd4, e6aae88, 8d8a83f) and pulls installations
forward onto the client that authenticates its feedback and crash reports
against HakuApi.
📥 Installation Guides
View Platform Installation Docs
Full Changelog: V2.10.1...V2.10.2