Skip to content

Commit

Permalink
feat: add x64
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Jun 20, 2024
1 parent 1a17645 commit ef391a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 7 additions & 6 deletions electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ef391a1

Please sign in to comment.