Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
UrielCh committed Apr 22, 2024
1 parent 914f8d0 commit 66f03b0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@ export class Constant {
"x64": " Win64",
"ia32": "",
"arm": " ARM",
"x86_64": " Win64",
"aarch64": " ARM",
};
}
4 changes: 1 addition & 3 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ export function getDirname(): string {
return new URL(".", import.meta.url).pathname;
}


export class Platfrm {
public static theOS: string = process.platform;//Deno.build.os;
public static theOS: string = process.platform; //Deno.build.os;

public static changeOS(os: "windows" | "linux" | "darwin") {
Platfrm.theOS = os;
Expand All @@ -39,4 +38,3 @@ export class Platfrm {
return Platfrm.theOS === "darwin";
}
}

12 changes: 7 additions & 5 deletions src/getLibsFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ export class getLibsFactory {
* @returns lib extention based on current OS
*/
get getLibSuffix(): "lib" | "dylib" | "so" {
if (Platfrm.isWindows)
return "lib";
if (Platfrm.isMac)
return "dylib";
return "so";
if (Platfrm.isWindows) {
return "lib";
}
if (Platfrm.isMac) {
return "dylib";
}
return "so";
}

/**
Expand Down

0 comments on commit 66f03b0

Please sign in to comment.