Skip to content
Closed
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
9 changes: 2 additions & 7 deletions npm/src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,8 @@ export type Platform = Extract<
'darwin' | 'linux' | 'win32'
>

/**
* foundry doesn't ship arm64 binaries for windows
*/
export type ArchitecturePlatform = Exclude<
`${Platform}-${Architecture}`,
'win32-arm64'
>
// Note: we intentionally don't export a combined `Platform-Architecture` alias here,
// since only specific pairs are supported (see `BINARY_DISTRIBUTION_PACKAGES`).

export const BINARY_DISTRIBUTION_PACKAGES = {
darwin: {
Expand Down
2 changes: 1 addition & 1 deletion npm/src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function extractFileFromTarball(
if (fileName === filepath)
return tarballBuffer.subarray(offset, offset + fileSize)

// Clamp offset to the uppoer multiple of 512
// Clamp offset to the upper multiple of 512
offset = (offset + fileSize + 511) & ~511
}
throw new Error(`File ${filepath} not found in tarball`)
Expand Down
Loading