Make arm64 binary deps available for dev.sh
Some checks are pending
CI / Linux (python=3.13 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.11 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run

Fixes #10197
This commit is contained in:
Kovid Goyal 2026-06-27 17:29:31 +05:30
parent 1096e9da5e
commit f6d1b11b29
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 7 additions and 2 deletions

View file

@ -279,8 +279,12 @@ func dependencies(args []string) {
which = "macos"
case "linux":
which = "linux"
if runtime.GOARCH != "amd64" {
exit("Pre-built dependencies are only available for the amd64 CPU architecture")
switch runtime.GOARCH {
case "amd64":
case "arm64", "arm64be":
url = strings.Replace(url, "-64.", "-arm64.", 1)
default:
exit(fmt.Sprintf("Pre-built binaries are not available for the %s architecture", runtime.GOARCH))
}
}
if which == "" {

View file

@ -2323,6 +2323,7 @@ def do_build(args: Options) -> None:
elif args.action == 'export-ci-bundles':
cmd = [sys.executable, '../bypy', 'export', 'download.calibre-ebook.com:/srv/download/ci/kitty']
subprocess.check_call(cmd + ['linux'])
subprocess.check_call(cmd + ['linux', '--arch=arm64'])
subprocess.check_call(cmd + ['macos'])
elif args.action == 'build-static-binaries':
build_static_binaries(args, launcher_dir)