Skip to content

Commit b695933

Browse files
committed
fix macos names for graalpy
1 parent 928058c commit b695933

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

dist/setup/index.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -69735,10 +69735,14 @@ function findAsset(item, architecture, platform) {
6973569735
: architecture === 'arm64'
6973669736
? 'aarch64'
6973769737
: architecture;
69738-
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
69738+
const graalpyPlatform = platform === 'win32'
69739+
? 'windows'
69740+
: platform === 'darwin'
69741+
? 'macos'
69742+
: platform;
6973969743
if (item.assets) {
6974069744
return item.assets.find((file) => {
69741-
const match_data = file.name.match('.*(darwin|linux|windows)-(amd64|aarch64).tar.gz$');
69745+
const match_data = file.name.match('.*(macos|linux|windows)-(amd64|aarch64).tar.gz$');
6974269746
return (match_data &&
6974369747
match_data[1] === graalpyPlatform &&
6974469748
match_data[2] === graalpyArch);

src/install-graalpy.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,16 @@ export function findAsset(
233233
: architecture === 'arm64'
234234
? 'aarch64'
235235
: architecture;
236-
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
237-
if (item.assets) {
236+
const graalpyPlatform =
237+
platform === 'win32'
238+
? 'windows'
239+
: platform === 'darwin'
240+
? 'macos'
241+
: platform;
242+
if (item.assets) {
238243
return item.assets.find((file: IGraalPyManifestAsset) => {
239244
const match_data = file.name.match(
240-
'.*(darwin|linux|windows)-(amd64|aarch64).tar.gz$'
245+
'.*(macos|linux|windows)-(amd64|aarch64).tar.gz$'
241246
);
242247
return (
243248
match_data &&

0 commit comments

Comments
 (0)