From 5de4eefed48b60cc5e26884fdd4f0e138b0e9d4c Mon Sep 17 00:00:00 2001 From: Derek Anderson Date: Tue, 16 Jul 2024 16:19:21 -0500 Subject: [PATCH 1/2] macos platform is darwin Signed-off-by: Derek Anderson --- bundler/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bundler/index.ts b/bundler/index.ts index f8e1ec1..9f44fd3 100644 --- a/bundler/index.ts +++ b/bundler/index.ts @@ -71,16 +71,21 @@ async function installJavy(): Promise { 'arm-linux': 'arm-linux', 'arm64-linux': 'arm-linux', 'x64-linux': 'x86_64-linux', - 'x64-mac': 'x86_64-macos', - 'arm64-mac': 'arm-macos' + 'x64-darwin': 'x86_64-macos', + 'arm64-darwin': 'arm-macos' } + console.log('platform', platform) + const binArch = platform === 'win32' ? 'x86_64-windows' : supportedArchitectures[`${arch}-${platform}`] || 'x86_64-linux' // Default to x86_64-linux if not found const binFilename = `javy-${binArch}` + console.log(binArch) + console.log(binFilename) + // Fetch the latest release information for bls-javy const releasesResponse = await fetch( 'https://api.github.com/repos/blocklessnetwork/bls-javy/releases/latest' From d5f97cd95cc2de0fd94a48817628a863b9a0241b Mon Sep 17 00:00:00 2001 From: Derek Anderson Date: Tue, 16 Jul 2024 16:29:49 -0500 Subject: [PATCH 2/2] remove console Signed-off-by: Derek Anderson --- bundler/index.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bundler/index.ts b/bundler/index.ts index 9f44fd3..6cb3916 100644 --- a/bundler/index.ts +++ b/bundler/index.ts @@ -75,17 +75,12 @@ async function installJavy(): Promise { 'arm64-darwin': 'arm-macos' } - console.log('platform', platform) - const binArch = platform === 'win32' ? 'x86_64-windows' : supportedArchitectures[`${arch}-${platform}`] || 'x86_64-linux' // Default to x86_64-linux if not found const binFilename = `javy-${binArch}` - console.log(binArch) - console.log(binFilename) - // Fetch the latest release information for bls-javy const releasesResponse = await fetch( 'https://api.github.com/repos/blocklessnetwork/bls-javy/releases/latest'