diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a0671a2a8..ba87b8612 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,7 +51,7 @@ jobs: with: node-version: "20.11" - name: Download binary - run: mkdir electron/bins && curl -L -o electron/bins/pearl_arm64 https://tempfileserver.staging.autonolas.tech/pearl_arm64 && chmod +x electron/bins/pearl_arm64 + run: mkdir electron/bins && curl -L -o electron/bins/pearl_arm64 https://tempfileserver.staging.autonolas.tech/pearl_arm64 && chmod +x electron/bins/pearl_arm64 && curl -L -o electron/bins/pearl_x64 https://tempfileserver.staging.autonolas.tech/pearl_arm64 && chmod +x electron/bins/pearl_x64 - uses: snok/install-poetry@v1 with: version: "1.7.1" diff --git a/electron/main.js b/electron/main.js index 9d7956bd1..bdd75e55f 100644 --- a/electron/main.js +++ b/electron/main.js @@ -41,14 +41,15 @@ const platform = os.platform(); const isDev = process.env.NODE_ENV === 'development'; const cliPaths = { - prod: { - darwin: 'bins/pearl_arm64', - win32: 'bins/pearl.exe', - linux: 'bins/pearl', - }, + prod: { + darwin: { + arm64: 'bins/pearl_arm64', + x64: 'bins/pearl_x64', + } + }, }; -const cliPath = path.join(process.resourcesPath, cliPaths.prod[platform]); +const cliPath = path.join(process.resourcesPath, cliPaths.prod[platform][process.arch.toString()]); console.log('CLI Path:', cliPath);