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.
79 lines
3.4 KiB
TypeScript
79 lines
3.4 KiB
TypeScript
/**
|
|
* The patcher: builds the game copy by pointing the client at the local server
|
|
* and patching the executable. Used by the development script scripts/build-game-copy.ts and by
|
|
* the launcher. The patch definitions, the network hook library and the store pack ids are given
|
|
* by the caller.
|
|
*/
|
|
export {
|
|
buildGameCopy,
|
|
readStockGameFiles,
|
|
type GameCopyBuild,
|
|
type GameCopyFile,
|
|
type GameCopyInputs,
|
|
type StockGameFiles,
|
|
} from './build-game-copy.ts';
|
|
export { NETWORK_CONFIG_PATH, rebuildCharPack, type CharPackResult } from './char-pack.ts';
|
|
export { copyPlayerDecalCache, playerDecalCacheProblem } from './decals/player-decal-cache.ts';
|
|
export { blockingFailures, ESSENTIAL_FEATURES } from './essential-features.ts';
|
|
export { patchExecutable, type ExecutableResult } from './executable.ts';
|
|
export { assertWritableCopy, GAME_FILES, isInSteamLibrary, type WritableCopyOptions } from './game-copy.ts';
|
|
export { executableVersion } from './game-version.ts';
|
|
export {
|
|
hardlinkResourceRules,
|
|
isHardlinkableResource,
|
|
type HardlinkResourceRules,
|
|
} from './hardlink-resources.ts';
|
|
export { rebuildGuiPack, type AppliedGuiPatch, type GuiPackResult } from './gui-pack.ts';
|
|
export { loadGuiPatches, type GuiScriptEdit, type GuiScriptPatch, type GuiScriptVariant } from './gui-patch-definition.ts';
|
|
export { ENGINE_SETTINGS_PATH, EXTRA_STORE_BUNDLE_GUID_MAP, EXTRA_STORE_BUNDLE_GUIDS, rebuildMainPack, type MainPackResult } from './main-pack.ts';
|
|
export { redirectAddresses, type AddressChange } from './network/address-rewrite.ts';
|
|
export { hostPort, localEndpoint, localUrl, type LocalEndpoint } from './network/local-endpoint.ts';
|
|
export { NETWORK_HOOK_LIBRARY, networkHookSettings } from './network/network-hook.ts';
|
|
export { redirectNetworkConfig, type NetworkRedirectReport } from './network/redirect-network-config.ts';
|
|
export { loadNativeModules, type NativeModule, type NativeSite, type NativeSiteVariant } from './native/native-definition.ts';
|
|
export { resolveNativeModules, type NativeResolution } from './native/native-resolve.ts';
|
|
export { patchFeatures, type PatchFeature } from './patch-features.ts';
|
|
export { checkPatchSet, type PatchSetSummary } from './patch-pack/check-patch-set.ts';
|
|
export {
|
|
compareAppVersions,
|
|
comparePackVersions,
|
|
formatManifest,
|
|
isPackVersion,
|
|
manifestIncompatibility,
|
|
MANIFEST_FILE,
|
|
packFileNames,
|
|
packVersionOfTag,
|
|
parseManifest,
|
|
PATCH_PACK_FORMAT,
|
|
PATCH_PACK_TAG_PREFIX,
|
|
type ManifestIncompatibility,
|
|
type PatchPackFileNames,
|
|
type PatchPackManifest,
|
|
} from './patch-pack/manifest.ts';
|
|
export { packGameVersions, readPatchPack, writePatchPack, type PatchPackContents, type PatchPackFile } from './patch-pack/pack-archive.ts';
|
|
export { PatchPackError, type PatchPackProblem } from './patch-pack/patch-pack-error.ts';
|
|
export { patchPackTuning, type PatchPackTuning } from './patch-pack/patch-pack-tuning.ts';
|
|
export {
|
|
generateSigningKeys,
|
|
packSigningPublicKey,
|
|
signEd25519,
|
|
signPatchPack,
|
|
SIGNING_PUBLIC_KEY_FILE,
|
|
verifyEd25519,
|
|
verifyPatchPack,
|
|
type SigningKeyPair,
|
|
} from './patch-pack/signature.ts';
|
|
export { patchSetFolders, type PatchSetFolders } from './patch-set.ts';
|
|
export { offlinePackBundleGuids } from './store/offline-bundles.ts';
|
|
export {
|
|
checkGameBuild,
|
|
compareVersions,
|
|
formatVersionRecord,
|
|
loadVersionRecords,
|
|
recordedGameVersions,
|
|
recordFileName,
|
|
type RecordInputs,
|
|
type VersionRecord,
|
|
} from './version-record.ts';
|
|
export { writeGameCopy } from './write-game-copy.ts';
|