diff --git a/packages/app-build/src/cli-options/architectures.ts b/packages/app-build/src/cli-options/architectures.ts index 34ed5011..d1b37b20 100644 --- a/packages/app-build/src/cli-options/architectures.ts +++ b/packages/app-build/src/cli-options/architectures.ts @@ -1,9 +1,12 @@ import { Type } from "cmd-ts" import { z } from "zod" -import { Architecture } from "../constants/architectures" +import { + Architecture, + SUPPORTED_ARCHITECTURES, +} from "../constants/architectures" -const ArchitectureSchema = z.array(z.enum(["x64", "arm64", "armv7l"])) +const ArchitectureSchema = z.array(z.enum(SUPPORTED_ARCHITECTURES)) export const ArchitecturesParameter: Type = { from: (value) => { diff --git a/packages/app-build/src/constants/architectures.ts b/packages/app-build/src/constants/architectures.ts index c2824be7..171f05b0 100644 --- a/packages/app-build/src/constants/architectures.ts +++ b/packages/app-build/src/constants/architectures.ts @@ -1,3 +1,8 @@ -export const SUPPORTED_ARCHITECTURES = ["x64", "arm64", "armv7l"] as const +export const SUPPORTED_ARCHITECTURES = [ + "x64", + // TODO: Re-enable ARM build once better-sqlite3 v10 binaries are available + //"arm64", + //"armv7l", +] as const export type Architecture = (typeof SUPPORTED_ARCHITECTURES)[number] diff --git a/packages/app-build/src/steps/download-better-sqlite3.ts b/packages/app-build/src/steps/download-better-sqlite3.ts index 8b9e5af6..39b6c300 100644 --- a/packages/app-build/src/steps/download-better-sqlite3.ts +++ b/packages/app-build/src/steps/download-better-sqlite3.ts @@ -20,8 +20,8 @@ type SqliteArchitecture = "x64" | "arm" | "arm64" export const SQLITE_ARCHITECTURE_MAP: { [key in Architecture]: SqliteArchitecture } = { - armv7l: "arm", - arm64: "arm64", + // armv7l: "arm", + // arm64: "arm64", x64: "x64", }