From a1f9f1d3ffb29c0475b921f45b0e91605c9de01b Mon Sep 17 00:00:00 2001 From: Justin Hayes Date: Wed, 13 Mar 2024 22:43:23 -0400 Subject: [PATCH] Explicitly set platform architecture Uses `uname -m` to get the arch. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d06173c..8a2f74b 100644 --- a/Makefile +++ b/Makefile @@ -7,11 +7,11 @@ all: rm -f node_modules/@jimp/core/node_modules/.bin/mkdirp rm -f node_modules/execa/node_modules/.bin/semver rm -f node_modules/execa/node_modules/.bin/which - npm run make + npm run make -- --arch=$(shell uname -m) --platform=darwin clean: rm -rf node_modules install: - xattr -c out/open-webui-assistant-darwin-arm64/open-webui-assistant.app - mv out/open-webui-assistant-darwin-arm64/open-webui-assistant.app ~/Applications/Open\ WebUI\ Assistant.app + xattr -c out/open-webui-assistant-darwin-$(shell uname -m)/open-webui-assistant.app + mv out/open-webui-assistant-darwin-$(shell uname -m)/open-webui-assistant.app ~/Applications/Open\ WebUI\ Assistant.app