FG
💻 Software🗄️ DatabasesVercel

Provide precompiled binaries for ARM

Fresh3 days ago
Mar 14, 20260 views
Confidence Score68%
68%

Problem

Currently, we do not have any precompiled binaries for the ARM platform. Now that Windows is supported, we should look into compiling for ARM. That would enable users to Prisma 2 on Raspberry Pi and other all sorts of ARM-based devices. This will also include adding ARM to the binaries spec: https://github.com/prisma/specs/tree/master/binaries#binary-files Ref: https://github.com/prisma/prisma2/issues/132

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Compile and Release ARM Binaries for Prisma 2

Medium Risk

The absence of precompiled binaries for the ARM platform is due to the current build process not including ARM architecture support. This limits the usability of Prisma 2 on ARM-based devices like Raspberry Pi, which are increasingly popular for development and deployment of applications.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Update Build Configuration

    Modify the build configuration files to include ARM architecture as a target. This involves updating the existing build scripts to recognize ARM as a valid architecture and ensuring that the necessary dependencies are compatible.

    yaml
    platforms: ['linux/arm', 'linux/arm64']
  2. 2

    Add ARM to Binaries Spec

    Edit the binaries specification file located at https://github.com/prisma/specs/tree/master/binaries#binary-files to include ARM binaries. This ensures that the build process generates the correct binaries for ARM platforms.

    yaml
    arm: { version: 'latest', url: 'https://example.com/prisma-arm.tar.gz' }
  3. 3

    Compile ARM Binaries

    Run the build process to compile the binaries for the ARM architecture. This step should be executed on an ARM-compatible environment or using cross-compilation tools.

    bash
    npm run build -- --platform=linux/arm
  4. 4

    Test ARM Binaries

    Deploy the compiled ARM binaries to a Raspberry Pi or similar ARM device and run tests to ensure functionality. This includes verifying that all features work as expected on the ARM platform.

    bash
    npm test -- --platform=linux/arm
  5. 5

    Release Binaries

    Once testing is successful, package the ARM binaries and release them to the appropriate repository or distribution channel. Ensure that the release notes include information about ARM support.

    bash
    git tag -a 'vX.Y.Z' -m 'Release ARM binaries'

Validation

Confirm that users can successfully download and run the ARM binaries on various ARM devices, including Raspberry Pi. Additionally, verify that the binaries perform all expected operations without errors.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

prismaormpostgresqlkind/featuretopic:-binarytech/enginestopic:-arm