assistant/Makefile
Justin Hayes a1f9f1d3ff
Explicitly set platform architecture
Uses `uname -m` to get the arch.
2024-03-13 22:43:23 -04:00

18 lines
523 B
Makefile

.PHONY: all clean install
.DEFAULT_GOAL := all
all:
npm i
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 -- --arch=$(shell uname -m) --platform=darwin
clean:
rm -rf node_modules
install:
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