Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/chrome_for_testing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ const platformString = (platform: Platform): PlatformString => {
return "mac-arm64";
} else if (platform.os === OS.WINDOWS && platform.arch === Arch.AMD64) {
return "win64";
} else if (platform.os === OS.WINDOWS && platform.arch === Arch.I686) {
return "win32";
}
throw new Error(`Unsupported platform: ${platform.os} ${platform.arch}`);
};
Expand Down
3 changes: 0 additions & 3 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export type OS = (typeof OS)[keyof typeof OS];

export const Arch = {
AMD64: "amd64",
I686: "i686",
ARM64: "arm64",
} as const;

Expand All @@ -39,8 +38,6 @@ export const getOS = (): OS => {
export const getArch = (): Arch => {
const arch = os.arch();
switch (arch) {
case "x32":
return Arch.I686;
case "x64":
return Arch.AMD64;
case "arm64":
Expand Down
4 changes: 0 additions & 4 deletions src/snapshot_bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,8 @@ const makePlatformPart = ({ os, arch }: Platform): string => {
return "Mac";
} else if (os === OS.DARWIN && arch === Arch.ARM64) {
return "Mac_Arm";
} else if (os === OS.LINUX && arch === Arch.I686) {
return "Linux";
} else if (os === OS.LINUX && arch === Arch.AMD64) {
return "Linux_x64";
} else if (os === OS.WINDOWS && arch === Arch.I686) {
return "Win";
} else if (os === OS.WINDOWS && arch === Arch.AMD64) {
return "Win_x64";
} else if (os === OS.WINDOWS && arch === Arch.ARM64) {
Expand Down
Loading