@@ -765,8 +765,6 @@ export async function cancelExtraction(appName: string) {
765
765
)
766
766
767
767
try {
768
- process . noAsar = false
769
-
770
768
const extractZipService = inProgressExtractionsMap . get ( appName )
771
769
if ( extractZipService ) {
772
770
extractZipService . cancel ( )
@@ -964,8 +962,6 @@ export async function install(
964
962
}
965
963
return { status : 'done' }
966
964
} catch ( error ) {
967
- process . noAsar = false
968
-
969
965
logInfo (
970
966
`Error while downloading and extracting game: ${ error } ` ,
971
967
LogPrefix . HyperPlay
@@ -1053,10 +1049,6 @@ export async function extract(
1053
1049
const zipFile = path . join ( directory , fileName )
1054
1050
logInfo ( `Extracting ${ zipFile } to ${ destinationPath } ` , LogPrefix . HyperPlay )
1055
1051
1056
- // disables electron's fs wrapper called when extracting .asar files
1057
- // which is necessary to extract electron app/game zip files
1058
- process . noAsar = true
1059
-
1060
1052
sendFrontendMessage ( 'gameStatusUpdate' , {
1061
1053
appName,
1062
1054
status : 'extracting' ,
@@ -1155,8 +1147,6 @@ export async function extract(
1155
1147
status : 'extracting'
1156
1148
} )
1157
1149
1158
- process . noAsar = false
1159
-
1160
1150
if ( isMac && executable . endsWith ( '.app' ) ) {
1161
1151
const macAppExecutable = readdirSync (
1162
1152
join ( executable , 'Contents' , 'MacOS' )
@@ -1211,8 +1201,6 @@ export async function extract(
1211
1201
LogPrefix . HyperPlay
1212
1202
)
1213
1203
1214
- process . noAsar = false
1215
-
1216
1204
cancelQueueExtraction ( )
1217
1205
callAbortController ( appName )
1218
1206
@@ -1255,8 +1243,6 @@ export async function extract(
1255
1243
extractService . extract ( ) . then ( )
1256
1244
} )
1257
1245
} catch ( error : unknown ) {
1258
- process . noAsar = false
1259
-
1260
1246
logInfo ( `Error while extracting game ${ error } ` , LogPrefix . HyperPlay )
1261
1247
1262
1248
window . webContents . send ( 'gameStatusUpdate' , {
0 commit comments