Skip to content

Commit

Permalink
Use arm64 builds of Ark on Linux (#4711)
Browse files Browse the repository at this point in the history
As a prerequisite to making arm64 builds of Positron, we need Positron
to bundle arm64 builds of ark when building on arm64 Linux. This change
does just that.

Ark is already producing arm64 builds of Linux, e.g.
https://github.com/posit-dev/ark/releases/tag/0.1.136.

### QA Notes

N/A; this does not currently impact any shipping releases since none are
made on arm64.
  • Loading branch information
jmcphers committed Sep 17, 2024
1 parent cc03931 commit 4a49fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/positron-r/scripts/install-kernel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as decompress from 'decompress';
import * as fs from 'fs';
import { IncomingMessage } from 'http';
import * as https from 'https';
import { platform } from 'os';
import { platform, arch } from 'os';
import * as path from 'path';
import { promisify } from 'util';

Expand Down Expand Up @@ -188,7 +188,7 @@ async function downloadAndReplaceArk(version: string,
switch (platform()) {
case 'win32': os = 'windows-x64'; break;
case 'darwin': os = 'darwin-universal'; break;
case 'linux': os = 'linux-x64'; break;
case 'linux': os = (arch() === 'arm64' ? 'linux-arm64' : 'linux-x64'); break;
default: {
console.error(`Unsupported platform ${platform()}.`);
return;
Expand Down

0 comments on commit 4a49fdd

Please sign in to comment.