feat(launcher): use version-independent rules for space-saving copies

Replace the single-version 2.61.0.43 SHA-256 hardlink manifest with declarative read-only asset rules in packages/patcher/tuning/hardlink-resources.jsonc (content/ and content.hq/ .dxp.bin and .grp archives with no minimum size cutoff). Space-saving installs and conversions now work across minor updates, and updating a space-saving client from a same-volume source preserves or creates hard links instead of detaching them into full copies.
This commit is contained in:
N0VAN0M4LY committed 2026-12-02 17:04:36 +08:00
1 parent 3ed41bdd60
commit bf2ce539e7
14 files changed
+292 -2812

No files matched your search

+2 -2
View File
@@ -70,10 +70,10 @@ export function registerIpcHandlers(): void {
const resolved = await canonicalCopyPath(path);
return { path: resolved, inSteam: isInSteamLibrary(path) || isInSteamLibrary(resolved) };
});
handle('install:measureFolder', async ({ path, version }) => {
handle('install:measureFolder', async ({ path }) => {
await requireFolder(path);
try {
return await measureFolder(path, version);
return await measureFolder(path);
} catch (error) {
console.warn('[install] measuring the folder failed:', error);
throw new AppError('folder_unreadable', { path });