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