chore: Update process.platform references to use surferPlatform

This commit is contained in:
Mauro Balades 2024-07-10 19:03:28 +02:00
parent 795991d1dc
commit 38b94f1cda
9 changed files with 15 additions and 15 deletions

View file

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