From 7e94a8653e1c855cc59762c3eea2a872b34defb1 Mon Sep 17 00:00:00 2001 From: omuretsu <84951833+Snarling@users.noreply.github.com> Date: Mon, 9 Oct 2023 19:14:53 -0400 Subject: [PATCH] Fix electron w/ unsupported arch for greenworks --- electron/greenworks.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/electron/greenworks.js b/electron/greenworks.js index 337bdfdd7..90ef16297 100644 --- a/electron/greenworks.js +++ b/electron/greenworks.js @@ -7,9 +7,11 @@ var fs = require("fs"); var greenworks; -if (process.platform === "darwin") greenworks = require("./lib/greenworks-osx64"); -else if (process.platform === "win32") greenworks = require("./lib/greenworks-win64"); -else if (process.platform === "linux") greenworks = require("./lib/greenworks-linux64"); +if (process.arch === "x64") { + if (process.platform === "darwin") greenworks = require("./lib/greenworks-osx64"); + else if (process.platform === "win32") greenworks = require("./lib/greenworks-win64"); + else if (process.platform === "linux") greenworks = require("./lib/greenworks-linux64"); +} function error_process(err, error_callback) { if (err && error_callback) error_callback(err);