Update browser.ts

This commit is contained in:
omove 2024-11-16 14:33:18 -05:00 committed by GitHub
parent 0da0c72ea3
commit d79f8d9318
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -147,14 +147,6 @@ async function writeUpdateFileToDisk(
suffix = '-aarch64';
}
}
if ((process as any).surferPlatform == 'linux') {
if (compatMode == 'x86_64') {
suffix = '-generic';
}
else if (compatMode == 'aarch64') {
suffix = '';
}
}
if ((process as any).surferPlatform == 'linux') {
if (compatMode == 'x86_64') {
suffix = '-generic';
@ -166,6 +158,14 @@ async function writeUpdateFileToDisk(
suffix = '-aarch64';
}
}
if ((process as any).surferPlatform == 'darwin') {
if (compatMode == 'x86_64') {
suffix = '-generic';
}
else if (compatMode == 'aarch64') {
suffix = '';
}
}
const xmlPath = join(
DIST_DIR,
'update',