Skip to content

Commit

Permalink
fix macos names for graalpy
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Aug 21, 2023
1 parent 928058c commit b695933
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
8 changes: 6 additions & 2 deletions dist/setup/index.js
Expand Up @@ -69735,10 +69735,14 @@ function findAsset(item, architecture, platform) {
: architecture === 'arm64'
? 'aarch64'
: architecture;
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
const graalpyPlatform = platform === 'win32'
? 'windows'
: platform === 'darwin'
? 'macos'
: platform;
if (item.assets) {
return item.assets.find((file) => {
const match_data = file.name.match('.*(darwin|linux|windows)-(amd64|aarch64).tar.gz$');
const match_data = file.name.match('.*(macos|linux|windows)-(amd64|aarch64).tar.gz$');
return (match_data &&
match_data[1] === graalpyPlatform &&
match_data[2] === graalpyArch);
Expand Down
11 changes: 8 additions & 3 deletions src/install-graalpy.ts
Expand Up @@ -233,11 +233,16 @@ export function findAsset(
: architecture === 'arm64'
? 'aarch64'
: architecture;
const graalpyPlatform = platform == 'win32' ? 'windows' : platform;
if (item.assets) {
const graalpyPlatform =
platform === 'win32'
? 'windows'
: platform === 'darwin'
? 'macos'
: platform;
if (item.assets) {
return item.assets.find((file: IGraalPyManifestAsset) => {
const match_data = file.name.match(
'.*(darwin|linux|windows)-(amd64|aarch64).tar.gz$'
'.*(macos|linux|windows)-(amd64|aarch64).tar.gz$'
);
return (
match_data &&
Expand Down

0 comments on commit b695933

Please sign in to comment.