Explicitly set platform architecture

Uses `uname -m` to get the arch.
This commit is contained in:
Justin Hayes 2024-03-13 22:43:23 -04:00 committed by GitHub
parent 77aa35ac94
commit a1f9f1d3ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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