chore: Update process.platform to use surferPlatform

This commit is contained in:
Mauro Balades 2024-07-10 18:44:55 +02:00
parent af40c2e3e3
commit 795991d1dc
12 changed files with 20 additions and 27 deletions

View file

@ -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
}