Skip to content

Commit

Permalink
Update browser.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
omove authored Nov 20, 2024
1 parent 0754810 commit 3e90e36
Showing 1 changed file with 28 additions and 36 deletions.
64 changes: 28 additions & 36 deletions src/commands/updates/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,42 +57,34 @@ function getReleaseMarName(releaseInfo: ReleaseInfo): string | undefined {
return
}

switch ((process as any).surferPlatform) {
case 'win32': {
switch (compatMode) {
case 'x86_64': {
releaseInfo.archives['windows-compat']
}
case 'x86_64-v3': {
releaseInfo.archives['windows']
}
case 'aarch64': {
releaseInfo.archives['windows-arm64']
}
}
}
case 'darwin': {
switch (compatMode) {
case 'x86_64': {
releaseInfo.archives['macos-x86_64']
}
case 'aarch64': {
releaseInfo.archives['macos-aarch64']
}
}
}
case 'linux': {
switch (compatMode) {
case 'x86_64': {
releaseInfo.archives['linux-compat']
}
case 'x86_64-v3': {
releaseInfo.archives['linux']
}
case 'aarch64': {
releaseInfo.archives['linux-aarch64']
}
}
if ((process as any).surferPlatform == 'win32') {
if (compatMode == 'x86_64') {
releaseInfo.archives['windows-compat']
}
else if (compatMode == 'x86_64-v3') {
releaseInfo.archives['windows']
}
else if (compatMode == 'aarch64') {
releaseInfo.archives['windows-arm64']
}
}
if ((process as any).surferPlatform == 'darwin') {
if (compatMode == 'x86_64') {
releaseInfo.archives['macos-x86_64']
}
else if (compatMode == 'aarch64') {
releaseInfo.archives['macos-aarch64']
}
}
if ((process as any).surferPlatform == 'linux') {
if (compatMode == 'x86_64') {
releaseInfo.archives['linux-compat']
}
else if (compatMode == 'x86_64-v3') {
releaseInfo.archives['linux']
}
else if (compatMode == 'aarch64') {
releaseInfo.archives['linux-aarch64']
}
}
}
Expand Down

0 comments on commit 3e90e36

Please sign in to comment.