Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] rm process.noAsar changes #1257

Merged
merged 9 commits into from
Apr 1, 2025
Prev Previous commit
Next Next commit
add feature flag for no asar
BrettCleary committed Mar 15, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit 673bb458ab178b058103b31f1d51a3f244f7941a
12 changes: 9 additions & 3 deletions src/backend/storeManagers/hyperplay/games.ts
Original file line number Diff line number Diff line change
@@ -1052,9 +1052,15 @@ export async function extract(
const zipFile = path.join(directory, fileName)
logInfo(`Extracting ${zipFile} to ${destinationPath}`, LogPrefix.HyperPlay)

// disables electron's fs wrapper called when extracting .asar files
// which is necessary to extract electron app/game zip files
process.noAsar = true
/**
* @dev disables electron's fs wrapper called when extracting .asar files
* which is necessary to extract electron app/game zip files.
* @TODO rm this code when we have a long term sol'n for running extraction in a separate process
*/
const enableProcessNoAsar = getFlag('enable-process-no-asar', false)
if (enableProcessNoAsar) {
process.noAsar = true
}

sendFrontendMessage('gameStatusUpdate', {
appName,