mirror of
https://github.com/zen-browser/surfer.git
synced 2025-07-08 01:10:03 +02:00
chore: Update process.platform references to use surferPlatform
This commit is contained in:
parent
795991d1dc
commit
38b94f1cda
9 changed files with 15 additions and 15 deletions
|
@ -52,7 +52,7 @@ function getReleaseMarName(releaseInfo: ReleaseInfo): string | undefined {
|
|||
return
|
||||
}
|
||||
|
||||
switch (process.surferPlatform) {
|
||||
switch ((process as any).surferPlatform) {
|
||||
case 'win32': {
|
||||
return releaseInfo.x86?.windowsMar
|
||||
}
|
||||
|
@ -113,11 +113,11 @@ async function writeUpdateFileToDisk(
|
|||
}
|
||||
|
||||
function getTargets(): string[] {
|
||||
if (process.surferPlatform == 'win32') {
|
||||
if ((process as any).surferPlatform == 'win32') {
|
||||
return ausPlatformsMap.win64
|
||||
}
|
||||
|
||||
if (process.surferPlatform == 'linux') {
|
||||
if ((process as any).surferPlatform == 'linux') {
|
||||
return ausPlatformsMap.linux64
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue