Merge pull request #2 from justinh-rahb/make

Add Makefile to install/clean
This commit is contained in:
Timothy Jaeryang Baek 2024-03-13 14:40:53 -05:00 committed by GitHub
commit 4b874f2284
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
Makefile Normal file
View File

@ -0,0 +1,17 @@
.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
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