Skip to content

Commit

Permalink
build: bump fragmenter to v0.7.2-alpha.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjozork committed Dec 3, 2022
1 parent f90c5c5 commit 726ff93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
},
"dependencies": {
"@ant-design/icons": "^4.4.0",
"@flybywiresim/fragmenter": "^0.7.2-alpha.2",
"@flybywiresim/fragmenter": "^0.7.2-alpha.4",
"@flybywiresim/react-components": "^0.2.5",
"@reduxjs/toolkit": "^1.7.1",
"@sentry/cli": "^2.5.0",
Expand Down
2 changes: 1 addition & 1 deletion src/main/InstallManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class InstallManager {
const abortController = new AbortController();

const fragmenterContext = new FragmenterContext({ useConsoleLog: true }, abortController.signal);
const fragmenterInstaller = new FragmenterInstaller(fragmenterContext, url, destDir, { temporaryDirectory: tempDir, forceManifestCacheBust: true });
const fragmenterInstaller = new FragmenterInstaller(fragmenterContext, url, destDir, { temporaryDirectory: tempDir, forceManifestCacheBust: true, forceFullInstallRatio: .5 });

const forwardFragmenterInstallerEvent = (event: keyof FragmenterInstallerEvents) => {
fragmenterInstaller.on(event, (...args: unknown[]) => {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/utils/InstallManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export class InstallManager {
const tempDir = Directories.temp();

const fragmenterUpdateChecker = new FragmenterUpdateChecker();
const updateInfo = await fragmenterUpdateChecker.needsUpdate(track.url, destDir, { forceCacheBust: true });
const updateInfo = await fragmenterUpdateChecker.needsUpdate(track.url, destDir, { forceCacheBust: true, forceFullInstallRatio: .5 });

// Confirm download size and required disk space with user
const requiredDiskSpace = updateInfo.requiredDiskSpace;
Expand Down

0 comments on commit 726ff93

Please sign in to comment.